Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009043/0.000904, allocations: 93.78 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.8 MB, free: 11.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 46.2 MB / 345.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002778/0.0002776, allocations: 11.98 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1335, allocations: 63.55 MB / 483.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.02563/0.1592, allocations: 25.15 MB / 0.4964 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.1749, allocations: 6.269 MB / 0.5025 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006087/0.181, allocations: 103.8 kB / 0.5026 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008874/0.1819, allocations: 163 kB / 0.5028 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002944/0.1849, allocations: 0.8444 MB / 0.5036 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.1862, allocations: 499.2 kB / 0.5041 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003065/0.1893, allocations: 2.338 MB / 0.5064 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2703/0.4596, allocations: 2.272 MB / 0.5086 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00104/0.4606, allocations: 493.8 kB / 0.5091 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.4619, allocations: 0.7897 MB / 0.5098 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001603/0.4621, allocations: 55.09 kB / 0.5099 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.4632, allocations: 0.5345 MB / 0.5104 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007968/0.464, allocations: 0.6217 MB / 0.511 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007625/0.4648, allocations: 0.7307 MB / 0.5117 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002897/0.4677, allocations: 2.324 MB / 0.514 GB, free: 9.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.4677, allocations: 1.062 kB / 0.514 GB, free: 9.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.4677, allocations: 0 / 0.514 GB, free: 9.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.977e-05/0.4678, allocations: 2.625 kB / 0.514 GB, free: 9.82 MB / 382.1 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.003183/0.4709, allocations: 1.696 MB / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.471, allocations: 10.47 kB / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003249/0.4713, allocations: 247.8 kB / 0.5159 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.4725, allocations: 277.2 kB / 0.5162 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.4746, allocations: 1.263 MB / 0.5174 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.4747, allocations: 99.64 kB / 0.5175 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002305/0.475, allocations: 125.4 kB / 0.5176 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/0.4807, allocations: 3.019 MB / 0.5206 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.748e-05/0.4808, allocations: 12.62 kB / 0.5206 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.4809, allocations: 56.75 kB / 0.5206 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006335/0.4815, allocations: 435.4 kB / 0.521 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004738/0.4863, allocations: 2.188 MB / 0.5232 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.4972, allocations: 10.74 MB / 0.5337 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003757/0.501, allocations: 1.246 MB / 0.5349 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004859/0.5015, allocations: 406.2 kB / 0.5353 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00344/0.5049, allocations: 3.094 MB / 0.5383 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.505, allocations: 47.72 kB / 0.5383 GB, free: 14.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=51): time 2.264e-06/0.505, allocations: 0 / 0.5383 GB, free: 14.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.01146/0.5165, allocations: 3.816 MB / 0.5421 GB, free: 12.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.5166, allocations: 88.58 kB / 0.5421 GB, free: 11.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.5186, allocations: 1.189 MB / 0.5433 GB, free: 11.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.5186, allocations: 33.7 kB / 0.5433 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006644/0.5193, allocations: 0.9296 MB / 0.5443 GB, free: 10.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.5195, allocations: 220.1 kB / 0.5445 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.5196, allocations: 146.2 kB / 0.5446 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.852e-05/0.5197, allocations: 305.1 kB / 0.5449 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006115/0.5204, allocations: 416.9 kB / 0.5453 GB, free: 9.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.5217, allocations: 1.248 MB / 0.5465 GB, free: 8.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.5238, allocations: 1.81 MB / 0.5483 GB, free: 6.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.5238, allocations: 7.344 kB / 0.5483 GB, free: 6.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002596/0.5264, allocations: 1.716 MB / 0.55 GB, free: 5.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.5264, allocations: 20 kB / 0.55 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-05/0.5265, allocations: 28 kB / 0.55 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.5267, allocations: 88.81 kB / 0.5501 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.5277, allocations: 356.2 kB / 0.5504 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.5293, allocations: 1.69 MB / 0.5521 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009645/0.5302, allocations: 76.05 kB / 0.5522 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.5304, allocations: 84 kB / 0.5522 GB, free: 3.227 MB / 398.1 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 (190): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001128/0.5315, allocations: 0.6469 MB / 0.5529 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.5316, allocations: 118.4 kB / 0.553 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002355/0.5319, allocations: 135.6 kB / 0.5531 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.5319, allocations: 12 kB / 0.5531 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.5319, allocations: 3.75 kB / 0.5531 GB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5319, allocations: 3.984 kB / 0.5531 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.5354, allocations: 2.245 MB / 0.5553 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5354, allocations: 4.5 kB / 0.5553 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003828/0.5358, allocations: 100.9 kB / 0.5554 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.536, allocations: 74.08 kB / 0.5555 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.5361, allocations: 16 kB / 0.5555 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.5377, allocations: 1.743 MB / 0.5572 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.892e-06/0.5377, allocations: 10.98 kB / 0.5572 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.5392, allocations: 1.126 MB / 0.5583 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.5394, allocations: 179.7 kB / 0.5585 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.761e-05/0.5395, allocations: 16 kB / 0.5585 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.5399, allocations: 31.97 kB / 0.5585 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/0.54, allocations: 47.14 kB / 0.5586 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.67e-05/0.54, allocations: 16 kB / 0.5586 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001001/0.541, allocations: 0.7636 MB / 0.5593 GB, free: 11.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.541, allocations: 0 / 0.5593 GB, free: 11.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001357/0.5424, allocations: 292 kB / 0.5596 GB, free: 11.42 MB / 414.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001818/0.5442, allocations: 1.686 MB / 0.5613 GB, free: 9.672 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.546, allocations: 1.1 MB / 0.5623 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.546, allocations: 4 kB / 0.5623 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005444/0.5465, allocations: 418.6 kB / 0.5627 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.548, allocations: 176.4 kB / 0.5629 GB, free: 8.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.5634, allocations: 12.74 MB / 0.5753 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/0.5647, allocations: 1.451 MB / 0.5768 GB, free: 8.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001041/0.5658, allocations: 405.6 kB / 0.5772 GB, free: 8.316 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.5665, allocations: 0.5774 MB / 0.5777 GB, free: 7.738 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5665, allocations: 0 / 0.5777 GB, free: 7.738 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05368/0.6202, allocations: 21.69 MB / 0.5989 GB, free: 2.32 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.6204, allocations: 231 kB / 0.5991 GB, free: 2.059 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.928, allocations: 0 / 0.5991 GB, free: 2.059 MB / 446.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/PrismaticInit/PrismaticInit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches