Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_4_0_0_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.001123/0.001123, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2364/0.2364, allocations: 44.18 MB / 336.6 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 64.25 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1262, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.0105/0.1367, allocations: 8.656 MB / 478 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008137/0.1449, allocations: 3.452 MB / 481.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.1465, allocations: 43.88 kB / 481.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002947/0.1494, allocations: 1.371 MB / 482.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003061/0.1526, allocations: 0.9338 MB / 483.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.154, allocations: 0.5147 MB / 484.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.1564, allocations: 1.679 MB / 486 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002298/0.1588, allocations: 1.667 MB / 487.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.1601, allocations: 0.6659 MB / 488.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.1618, allocations: 0.8918 MB / 489.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004717/0.1623, allocations: 140 kB / 489.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.1638, allocations: 0.5851 MB / 490 MB, free: 9.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009717/0.1647, allocations: 0.7248 MB / 490.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.1663, allocations: 0.8315 MB / 491.5 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003379/0.1696, allocations: 2.453 MB / 494 MB, free: 5.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.1697, allocations: 3.984 kB / 494 MB, free: 5.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1697, allocations: 0 / 494 MB, free: 5.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001008/0.1698, allocations: 4 kB / 494 MB, free: 5.547 MB / 366.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.005762/0.1756, allocations: 2.013 MB / 496 MB, free: 3.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.1756, allocations: 16.02 kB / 496 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006759/0.1763, allocations: 241.5 kB / 496.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.1778, allocations: 282.4 kB / 496.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/0.1807, allocations: 1.368 MB / 497.9 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.1808, allocations: 94.39 kB / 498 MB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003067/0.1811, allocations: 124 kB / 498.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006324/0.1875, allocations: 2.984 MB / 0.4893 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.538e-05/0.1876, allocations: 15.78 kB / 0.4894 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/0.1878, allocations: 59.97 kB / 0.4894 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007113/0.1885, allocations: 438 kB / 0.4898 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005972/0.1945, allocations: 2.16 MB / 0.4919 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01633/0.2109, allocations: 10.73 MB / 0.5024 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3097/0.5206, allocations: 1.223 MB / 0.5036 GB, free: 49.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007333/0.5214, allocations: 406.5 kB / 0.504 GB, free: 49.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00422/0.5256, allocations: 2.994 MB / 0.5069 GB, free: 47.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.5257, allocations: 48.53 kB / 0.507 GB, free: 47.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.304e-06/0.5257, allocations: 0 / 0.507 GB, free: 47.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.01224/0.538, allocations: 3.748 MB / 0.5106 GB, free: 46.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.538, allocations: 88.42 kB / 0.5107 GB, free: 46.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001922/0.54, allocations: 1.198 MB / 0.5119 GB, free: 45.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.54, allocations: 35.23 kB / 0.5119 GB, free: 45.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006963/0.5407, allocations: 0.9351 MB / 0.5128 GB, free: 45.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.5409, allocations: 224.2 kB / 0.513 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.5413, allocations: 308.9 kB / 0.5133 GB, free: 44.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.006e-05/0.5413, allocations: 306.3 kB / 0.5136 GB, free: 44.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006331/0.542, allocations: 416.4 kB / 0.514 GB, free: 44.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.5431, allocations: 1.242 MB / 0.5152 GB, free: 43.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.5451, allocations: 1.792 MB / 0.517 GB, free: 41.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-05/0.5452, allocations: 12.88 kB / 0.517 GB, free: 41.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.00313/0.5483, allocations: 1.703 MB / 0.5187 GB, free: 40.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.5484, allocations: 18 kB / 0.5187 GB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.203e-05/0.5484, allocations: 28.94 kB / 0.5187 GB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.5487, allocations: 91.8 kB / 0.5188 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.5498, allocations: 354.1 kB / 0.5191 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.5513, allocations: 1.871 MB / 0.521 GB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.5524, allocations: 67.55 kB / 0.521 GB, free: 39.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.5525, allocations: 85.27 kB / 0.5211 GB, free: 39.2 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.001002/0.5536, allocations: 0.6493 MB / 0.5217 GB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.5537, allocations: 118.5 kB / 0.5219 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.5549, allocations: 0.7053 MB / 0.5225 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.5549, allocations: 4.844 kB / 0.5225 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.5549, allocations: 1.438 kB / 0.5225 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.555, allocations: 9.172 kB / 0.5226 GB, free: 38.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.5581, allocations: 2.233 MB / 0.5247 GB, free: 37.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.5581, allocations: 3.969 kB / 0.5247 GB, free: 37.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.5584, allocations: 93.45 kB / 0.5248 GB, free: 37.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.5586, allocations: 74.94 kB / 0.5249 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.5586, allocations: 13.75 kB / 0.5249 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.5598, allocations: 1.933 MB / 0.5268 GB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5598, allocations: 12.72 kB / 0.5268 GB, free: 35.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.561, allocations: 1.104 MB / 0.5279 GB, free: 35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.5612, allocations: 178.7 kB / 0.5281 GB, free: 34.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.5613, allocations: 20.45 kB / 0.5281 GB, free: 34.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.5617, allocations: 25.45 kB / 0.5281 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.5618, allocations: 48.73 kB / 0.5282 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.5618, allocations: 23.45 kB / 0.5282 GB, free: 34.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00084/0.5627, allocations: 0.766 MB / 0.5289 GB, free: 34.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5627, allocations: 0 / 0.5289 GB, free: 34.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001439/0.5641, allocations: 302.3 kB / 0.5292 GB, free: 34.36 MB / 382.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.001414/0.5655, allocations: 1.664 MB / 0.5308 GB, free: 33.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.5672, allocations: 1.196 MB / 0.532 GB, free: 32.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5673, allocations: 4 kB / 0.532 GB, free: 32.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.5677, allocations: 411.3 kB / 0.5324 GB, free: 31.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009115/0.5686, allocations: 186.1 kB / 0.5326 GB, free: 31.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.5802, allocations: 12.04 MB / 0.5443 GB, free: 18.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/0.581, allocations: 1.451 MB / 0.5458 GB, free: 16.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009354/0.582, allocations: 417.8 kB / 0.5462 GB, free: 16.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/0.5825, allocations: 0.5813 MB / 0.5467 GB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5825, allocations: 3.938 kB / 0.5467 GB, free: 15.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04558/0.6281, allocations: 22.59 MB / 0.5688 GB, free: 9.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.963/10.59, allocations: 4.781 kB / 0.5688 GB, free: 9.566 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.PrismaticInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches