Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008853/0.0008854, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.199/1.199, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006807/0.0006807, allocations: 93.47 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2899/0.2899, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 12 kB / 432.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09048, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.1995/0.29, allocations: 43.06 MB / 0.5215 GB, free: 19.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01602/0.306, allocations: 8.847 MB / 0.5301 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006957/0.313, allocations: 194.8 kB / 0.5303 GB, free: 13.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005194/0.3183, allocations: 2.069 MB / 0.5323 GB, free: 13.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01266/0.3309, allocations: 5.772 MB / 0.5379 GB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002784/0.3338, allocations: 0.5625 MB / 0.5385 GB, free: 10.31 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.3369, allocations: 3.071 MB / 0.5415 GB, free: 9.172 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006356/0.3433, allocations: 5.716 MB / 0.5471 GB, free: 6.766 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001581/0.3449, allocations: 0.9407 MB / 0.548 GB, free: 6.418 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002129/0.3471, allocations: 1.429 MB / 0.5494 GB, free: 5.934 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004383/0.3475, allocations: 127.6 kB / 0.5495 GB, free: 5.934 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.3491, allocations: 0.7363 MB / 0.5502 GB, free: 5.738 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001527/0.3506, allocations: 1.362 MB / 0.5516 GB, free: 5.332 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.3524, allocations: 1.559 MB / 0.5531 GB, free: 4.246 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005153/0.3575, allocations: 4.929 MB / 0.5579 GB, free: 1.562 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3576, allocations: 0 / 0.5579 GB, free: 1.562 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.357e-06/0.3576, allocations: 0 / 0.5579 GB, free: 1.562 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001791/0.3578, allocations: 1 kB / 0.5579 GB, free: 1.562 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.007289/0.3651, allocations: 3.416 MB / 0.5612 GB, free: 15.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3651, allocations: 9.688 kB / 0.5612 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00158/0.3667, allocations: 0.6319 MB / 0.5619 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002686/0.3694, allocations: 0.5821 MB / 0.5624 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003512/0.3729, allocations: 1.814 MB / 0.5642 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.3731, allocations: 234.4 kB / 0.5644 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006271/0.3738, allocations: 322.8 kB / 0.5647 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.3897, allocations: 8.664 MB / 0.5732 GB, free: 5.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.658e-05/0.3898, allocations: 15.88 kB / 0.5732 GB, free: 5.531 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003381/0.3901, allocations: 135.9 kB / 0.5733 GB, free: 5.398 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002448/0.3926, allocations: 1.561 MB / 0.5749 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.4076, allocations: 6.665 MB / 0.5814 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03743/0.4451, allocations: 26.41 MB / 0.6072 GB, free: 2.059 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006215/0.4514, allocations: 1.944 MB / 0.6091 GB, free: 80 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.4527, allocations: 0.838 MB / 0.6099 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008167/0.4609, allocations: 6.317 MB / 0.616 GB, free: 8.379 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.461, allocations: 39.22 kB / 0.6161 GB, free: 8.332 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 5.771e-06/0.461, allocations: 4 kB / 0.6161 GB, free: 8.328 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.0166/0.4776, allocations: 6.237 MB / 0.6222 GB, free: 2.043 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.4777, allocations: 137.5 kB / 0.6223 GB, free: 1.879 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003434/0.4811, allocations: 2.494 MB / 0.6247 GB, free: 15.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.262e-05/0.4812, allocations: 41.7 kB / 0.6248 GB, free: 15.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.4827, allocations: 2.403 MB / 0.6271 GB, free: 12.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003515/0.4831, allocations: 391.2 kB / 0.6275 GB, free: 12.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.4833, allocations: 80.09 kB / 0.6276 GB, free: 12.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002491/0.4835, allocations: 462 kB / 0.628 GB, free: 11.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.4851, allocations: 0.9443 MB / 0.6289 GB, free: 11.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002754/0.4878, allocations: 3.261 MB / 0.6321 GB, free: 6.602 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004631/0.4925, allocations: 4.59 MB / 0.6366 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.278e-05/0.4925, allocations: 24 kB / 0.6366 GB, free: 0.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.006621/0.4992, allocations: 4.09 MB / 0.6406 GB, free: 12.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.282e-05/0.4993, allocations: 40 kB / 0.6407 GB, free: 12.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.924e-05/0.4994, allocations: 83.94 kB / 0.6407 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.4995, allocations: 112 kB / 0.6409 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/0.5022, allocations: 0.8935 MB / 0.6417 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001422/0.5023, allocations: 167.4 kB / 0.6419 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002308/0.5046, allocations: 163.8 kB / 0.642 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003675/0.505, allocations: 232 kB / 0.6423 GB, free: 11.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 375 * Number of states: 0 () * Number of discrete variables: 40 (jointUSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (483): * Single equations (assignments): 483 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002919/0.5079, allocations: 1.585 MB / 0.6438 GB, free: 9.461 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004229/0.5084, allocations: 217.2 kB / 0.644 GB, free: 9.246 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.5104, allocations: 1.138 MB / 0.6451 GB, free: 8.098 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.5105, allocations: 8 kB / 0.6451 GB, free: 8.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.5105, allocations: 8 kB / 0.6451 GB, free: 8.082 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.5105, allocations: 11.91 kB / 0.6452 GB, free: 8.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.5206, allocations: 5.973 MB / 0.651 GB, free: 1.777 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.568e-05/0.5206, allocations: 16 kB / 0.651 GB, free: 1.762 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000688/0.5213, allocations: 215.7 kB / 0.6512 GB, free: 1.551 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.163e-05/0.5214, allocations: 24 kB / 0.6512 GB, free: 1.527 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-05/0.5214, allocations: 36.59 kB / 0.6513 GB, free: 1.492 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.471e-05/0.5215, allocations: 35.86 kB / 0.6513 GB, free: 1.457 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.698e-05/0.5215, allocations: 31.88 kB / 0.6513 GB, free: 1.426 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.5235, allocations: 1.743 MB / 0.653 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006977/0.5242, allocations: 318 kB / 0.6533 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000435/0.5247, allocations: 43.98 kB / 0.6534 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009665/0.5257, allocations: 43.98 kB / 0.6534 GB, free: 15.01 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.5258, allocations: 131.4 kB / 0.6535 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.5259, allocations: 52 kB / 0.6536 GB, free: 14.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002653/0.5286, allocations: 1.616 MB / 0.6552 GB, free: 13.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5286, allocations: 0 / 0.6552 GB, free: 13.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003388/0.532, allocations: 0.6484 MB / 0.6558 GB, free: 12.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002701/0.5347, allocations: 2.383 MB / 0.6581 GB, free: 9.914 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003685/0.5384, allocations: 2.268 MB / 0.6603 GB, free: 7.664 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.5384, allocations: 4 kB / 0.6604 GB, free: 7.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007691/0.5392, allocations: 0.5194 MB / 0.6609 GB, free: 7.145 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007021/0.5463, allocations: 325 kB / 0.6612 GB, free: 6.828 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1969/0.7432, allocations: 21 MB / 0.6817 GB, free: 156.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003684/0.7469, allocations: 2.745 MB / 0.6844 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/0.7486, allocations: 1.486 MB / 0.6858 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of SimCode: time 8.82e-07/0.7486, allocations: 0 / 0.6858 GB, free: 156.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.172/5.921, allocations: 51.99 MB / 0.7366 GB, free: 138.1 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointUSP/JointUSP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches