Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.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: translateModel(ModelicaTest.MultiBody.Joints.PrismaticInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit") translateModel(ModelicaTest.MultiBody.Joints.PrismaticInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001404/0.001404, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.559/1.559, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007983/0.0007984, allocations: 88.94 kB / 270.9 MB, free: 8.352 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.3831/0.3831, allocations: 43.56 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004247/0.0004247, allocations: 15.98 kB / 431.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 58.84 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.2621/0.3965, allocations: 23.6 MB / 0.5018 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.4111, allocations: 5.977 MB / 0.5076 GB, free: 29.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006486/0.4176, allocations: 111.3 kB / 0.5077 GB, free: 29.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.4221, allocations: 1.034 MB / 0.5087 GB, free: 29.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01187/0.4341, allocations: 3.305 MB / 0.512 GB, free: 28.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002137/0.4362, allocations: 447.3 kB / 0.5124 GB, free: 27.99 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.4392, allocations: 1.891 MB / 0.5142 GB, free: 27.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.4422, allocations: 1.974 MB / 0.5162 GB, free: 26.56 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.4433, allocations: 0.5277 MB / 0.5167 GB, free: 26.37 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001268/0.4446, allocations: 0.7882 MB / 0.5175 GB, free: 26.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000324/0.445, allocations: 53.34 kB / 0.5175 GB, free: 26.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.4462, allocations: 456.3 kB / 0.5179 GB, free: 26.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007869/0.447, allocations: 0.624 MB / 0.5186 GB, free: 25.86 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006237/0.4476, allocations: 314.1 kB / 0.5189 GB, free: 25.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.4497, allocations: 1.907 MB / 0.5207 GB, free: 25.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4498, allocations: 0 / 0.5207 GB, free: 25.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4498, allocations: 0 / 0.5207 GB, free: 25.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001187/0.4499, allocations: 0 / 0.5207 GB, free: 25.25 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: 449 * Number of variables: 449 Notification: Performance of Generate backend data structure: time 0.003775/0.4537, allocations: 1.729 MB / 0.5224 GB, free: 24.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.4537, allocations: 14.52 kB / 0.5224 GB, free: 24.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001318/0.455, allocations: 270.2 kB / 0.5227 GB, free: 24.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.4572, allocations: 1.081 MB / 0.5237 GB, free: 23.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.016e-05/0.4573, allocations: 93.7 kB / 0.5238 GB, free: 23.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/0.4576, allocations: 130.7 kB / 0.5239 GB, free: 23.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005414/0.463, allocations: 2.98 MB / 0.5269 GB, free: 22.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-05/0.4631, allocations: 13.78 kB / 0.5269 GB, free: 22.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.4632, allocations: 62.77 kB / 0.5269 GB, free: 22.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005512/0.4638, allocations: 431.1 kB / 0.5273 GB, free: 21.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004263/0.468, allocations: 2.164 MB / 0.5295 GB, free: 21.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.4805, allocations: 10.73 MB / 0.5399 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003883/0.4844, allocations: 1.233 MB / 0.5411 GB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006175/0.4851, allocations: 411 kB / 0.5415 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003667/0.4887, allocations: 3.002 MB / 0.5445 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.4888, allocations: 41.56 kB / 0.5445 GB, free: 11.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.535e-06/0.4888, allocations: 0 / 0.5445 GB, free: 11.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.01165/0.5005, allocations: 3.774 MB / 0.5482 GB, free: 9.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.5005, allocations: 87.75 kB / 0.5483 GB, free: 9.523 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.5023, allocations: 1.196 MB / 0.5494 GB, free: 8.855 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.5023, allocations: 35.89 kB / 0.5495 GB, free: 8.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005248/0.5029, allocations: 0.9375 MB / 0.5504 GB, free: 7.984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.503, allocations: 216.6 kB / 0.5506 GB, free: 7.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/0.5031, allocations: 30.88 kB / 0.5506 GB, free: 7.777 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.5032, allocations: 373.5 kB / 0.551 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006488/0.5039, allocations: 409.8 kB / 0.5514 GB, free: 7.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009933/0.5049, allocations: 1.246 MB / 0.5526 GB, free: 5.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008691/0.5057, allocations: 0.6864 MB / 0.5533 GB, free: 5.496 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.5058, allocations: 11.97 kB / 0.5533 GB, free: 5.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.002429/0.5082, allocations: 1.713 MB / 0.5549 GB, free: 4.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.5082, allocations: 21.72 kB / 0.555 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.48e-05/0.5083, allocations: 29.28 kB / 0.555 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000221/0.5085, allocations: 90.66 kB / 0.5551 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.5096, allocations: 363 kB / 0.5554 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.5108, allocations: 1.69 MB / 0.5571 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009241/0.5117, allocations: 66.3 kB / 0.5571 GB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.85e-05/0.5118, allocations: 87.25 kB / 0.5572 GB, free: 2.863 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (194): * Single equations (assignments): 193 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000829/0.5127, allocations: 0.6508 MB / 0.5579 GB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.5128, allocations: 115.1 kB / 0.558 GB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.5138, allocations: 0.7003 MB / 0.5587 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.5139, allocations: 10.14 kB / 0.5587 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5139, allocations: 6.312 kB / 0.5587 GB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.5139, allocations: 0 / 0.5587 GB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.517, allocations: 2.231 MB / 0.5608 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.517, allocations: 4.219 kB / 0.5609 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.5174, allocations: 98.11 kB / 0.5609 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.5176, allocations: 68.88 kB / 0.561 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.5177, allocations: 16.06 kB / 0.561 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.5192, allocations: 1.752 MB / 0.5627 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.5192, allocations: 11.94 kB / 0.5627 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.5207, allocations: 1.087 MB / 0.5638 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003408/0.5211, allocations: 227.5 kB / 0.564 GB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.664e-05/0.5212, allocations: 12 kB / 0.564 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/0.5216, allocations: 32.3 kB / 0.5641 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/0.5216, allocations: 51.83 kB / 0.5641 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.5217, allocations: 24 kB / 0.5641 GB, free: 13.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009833/0.5227, allocations: 0.756 MB / 0.5649 GB, free: 12.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5227, allocations: 0 / 0.5649 GB, free: 12.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001472/0.5242, allocations: 300 kB / 0.5652 GB, free: 12.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.5244, allocations: 131 kB / 0.5653 GB, free: 12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.5261, allocations: 1.097 MB / 0.5664 GB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5261, allocations: 0 / 0.5664 GB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005229/0.5267, allocations: 394.5 kB / 0.5667 GB, free: 10.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009582/0.5276, allocations: 184.7 kB / 0.5669 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.5323, allocations: 3.542 MB / 0.5704 GB, free: 6.695 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001147/0.5335, allocations: 1.451 MB / 0.5718 GB, free: 5.215 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.5337, allocations: 83.44 kB / 0.5719 GB, free: 5.133 MB / 394.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5337, allocations: 4 kB / 0.5719 GB, free: 5.129 MB / 394.7 MB Notification: Performance of Templates: time 0.03441/0.5681, allocations: 22.29 MB / 0.5936 GB, free: 14.86 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/PrismaticInit/PrismaticInit.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches