Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008183/0.0008185, allocations: 96.16 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008643/0.0008644, allocations: 185.1 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3783/0.3783, allocations: 43.58 MB / 315 MB, free: 9.055 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005244/0.0005246, allocations: 16.59 kB / 384.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1123, allocations: 58.87 MB / 443.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.2425/0.3549, allocations: 25.33 MB / 468.9 MB, free: 34.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.3677, allocations: 6.326 MB / 475.2 MB, free: 32.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004603/0.3724, allocations: 105.6 kB / 475.3 MB, free: 32.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000692/0.3731, allocations: 169.6 kB / 475.5 MB, free: 32.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002568/0.3757, allocations: 0.8602 MB / 476.3 MB, free: 31.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.3767, allocations: 484 kB / 476.8 MB, free: 31.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00237/0.3791, allocations: 2.311 MB / 479.1 MB, free: 31.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002662/0.3818, allocations: 2.298 MB / 481.4 MB, free: 30.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006748/0.3825, allocations: 0.5019 MB / 481.9 MB, free: 30.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007871/0.3833, allocations: 0.7953 MB / 482.7 MB, free: 29.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.799e-05/0.3834, allocations: 53.66 kB / 482.8 MB, free: 29.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008547/0.3842, allocations: 0.56 MB / 483.3 MB, free: 29.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004265/0.3847, allocations: 0.6261 MB / 483.9 MB, free: 29.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.3851, allocations: 0.7446 MB / 484.7 MB, free: 28.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001739/0.3869, allocations: 2.359 MB / 487 MB, free: 28.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3869, allocations: 0 / 487 MB, free: 28.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3869, allocations: 3.312 kB / 487 MB, free: 28.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.612e-05/0.387, allocations: 0 / 487 MB, free: 28.29 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.002909/0.3899, allocations: 1.722 MB / 488.8 MB, free: 27.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.3899, allocations: 8.625 kB / 488.8 MB, free: 27.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002738/0.3902, allocations: 247 kB / 489 MB, free: 27.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/0.3913, allocations: 284.9 kB / 489.3 MB, free: 27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.3933, allocations: 1.515 MB / 490.8 MB, free: 26.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-05/0.3934, allocations: 98.33 kB / 490.9 MB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.3936, allocations: 121.1 kB / 491 MB, free: 26.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005263/0.3989, allocations: 2.999 MB / 494 MB, free: 24.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.327e-05/0.3989, allocations: 22.28 kB / 494 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.3991, allocations: 56.09 kB / 494.1 MB, free: 24.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000721/0.3998, allocations: 431.6 kB / 494.5 MB, free: 24.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005171/0.405, allocations: 2.176 MB / 496.7 MB, free: 24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/0.4175, allocations: 10.75 MB / 0.4956 GB, free: 16.78 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003839/0.4214, allocations: 1.231 MB / 0.4968 GB, free: 16.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/0.422, allocations: 418.5 kB / 0.4972 GB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003617/0.4256, allocations: 3.006 MB / 0.5001 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.4256, allocations: 42.94 kB / 0.5001 GB, free: 14.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.004e-06/0.4256, allocations: 0 / 0.5001 GB, free: 14.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.01218/0.4378, allocations: 3.808 MB / 0.5039 GB, free: 12.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.4379, allocations: 87.27 kB / 0.5039 GB, free: 12.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.4396, allocations: 1.217 MB / 0.5051 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.4397, allocations: 32.58 kB / 0.5052 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/0.4402, allocations: 0.9374 MB / 0.5061 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.4404, allocations: 225.1 kB / 0.5063 GB, free: 11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.4405, allocations: 152.3 kB / 0.5064 GB, free: 10.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.231e-05/0.4406, allocations: 301.1 kB / 0.5067 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005619/0.4411, allocations: 407.9 kB / 0.5071 GB, free: 10.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009172/0.4421, allocations: 1.245 MB / 0.5083 GB, free: 9.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.4437, allocations: 1.791 MB / 0.5101 GB, free: 7.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/0.4437, allocations: 8.375 kB / 0.5101 GB, free: 7.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.00247/0.4462, allocations: 1.712 MB / 0.5118 GB, free: 6.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.4463, allocations: 21 kB / 0.5118 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/0.4463, allocations: 30.28 kB / 0.5118 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001984/0.4465, allocations: 85.53 kB / 0.5119 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009284/0.4474, allocations: 353.3 kB / 0.5122 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.4486, allocations: 1.695 MB / 0.5139 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008591/0.4495, allocations: 66.58 kB / 0.5139 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.444e-05/0.4496, allocations: 83.91 kB / 0.514 GB, free: 4.727 MB / 382.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.000881/0.4505, allocations: 0.6438 MB / 0.5146 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.4506, allocations: 123.2 kB / 0.5148 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.4517, allocations: 0.7019 MB / 0.5154 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4517, allocations: 11.56 kB / 0.5155 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4517, allocations: 7.938 kB / 0.5155 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4517, allocations: 3.984 kB / 0.5155 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002978/0.4547, allocations: 2.242 MB / 0.5177 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4547, allocations: 4 kB / 0.5177 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003254/0.455, allocations: 95.83 kB / 0.5178 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/0.4552, allocations: 70.48 kB / 0.5178 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.4552, allocations: 16 kB / 0.5178 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.4564, allocations: 1.75 MB / 0.5195 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.4564, allocations: 4 kB / 0.5196 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.4578, allocations: 1.095 MB / 0.5206 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.4581, allocations: 235.5 kB / 0.5208 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-05/0.4582, allocations: 19.94 kB / 0.5209 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.4586, allocations: 28.05 kB / 0.5209 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.4587, allocations: 47.83 kB / 0.5209 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.4587, allocations: 20 kB / 0.521 GB, free: 14.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009771/0.4597, allocations: 0.7758 MB / 0.5217 GB, free: 13.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4597, allocations: 0 / 0.5217 GB, free: 13.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4611, allocations: 300 kB / 0.522 GB, free: 13.31 MB / 398.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.001852/0.4629, allocations: 1.674 MB / 0.5236 GB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.4646, allocations: 1.084 MB / 0.5247 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4647, allocations: 0 / 0.5247 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.4652, allocations: 408.4 kB / 0.5251 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.4667, allocations: 169.6 kB / 0.5252 GB, free: 9.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/0.4825, allocations: 12.83 MB / 0.5378 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.4838, allocations: 1.462 MB / 0.5392 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.4848, allocations: 409.7 kB / 0.5396 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.4855, allocations: 0.5813 MB / 0.5402 GB, free: 9.352 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4855, allocations: 0 / 0.5402 GB, free: 9.352 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.529, allocations: 21.95 MB / 0.5616 GB, free: 3.469 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.5292, allocations: 227.2 kB / 0.5618 GB, free: 3.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.277/2.806, allocations: 0 / 0.5618 GB, free: 3.207 MB / 430.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat","/var/lib/jenkins1/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_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches