Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001114/0.001114, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2221/0.2221, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 77.69 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 62.44 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01403/0.134, allocations: 11.37 MB / 491.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009306/0.1434, allocations: 4.053 MB / 495.5 MB, free: 5.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.1453, allocations: 63.81 kB / 495.6 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004773/0.1501, allocations: 2.488 MB / 498.1 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.1558, allocations: 1.836 MB / 499.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002611/0.1584, allocations: 0.78 MB / 0.489 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007767/0.1662, allocations: 4.499 MB / 0.4934 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005486/0.1717, allocations: 3.335 MB / 0.4966 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.1749, allocations: 1.546 MB / 0.4981 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003428/0.1784, allocations: 2.216 MB / 0.5003 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.1796, allocations: 332 kB / 0.5006 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002501/0.1821, allocations: 0.9597 MB / 0.5016 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002232/0.1843, allocations: 1.913 MB / 0.5034 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2136/0.398, allocations: 2.239 MB / 0.5056 GB, free: 18.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.4092, allocations: 6.579 MB / 0.512 GB, free: 17.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.4093, allocations: 0 / 0.512 GB, free: 17.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4093, allocations: 4.188 kB / 0.512 GB, free: 17.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003144/0.4096, allocations: 0 / 0.512 GB, free: 17.73 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01613/0.4257, allocations: 4.815 MB / 0.5167 GB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.4258, allocations: 9.531 kB / 0.5167 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002447/0.4283, allocations: 0.7341 MB / 0.5175 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009202/0.4375, allocations: 1.963 MB / 0.5194 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006358/0.4439, allocations: 2.729 MB / 0.522 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002236/0.4441, allocations: 256 kB / 0.5223 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/0.4457, allocations: 331.5 kB / 0.5226 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0179/0.4636, allocations: 10.23 MB / 0.5326 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.4637, allocations: 45.38 kB / 0.5326 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004198/0.4642, allocations: 162.1 kB / 0.5328 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00239/0.4666, allocations: 1.904 MB / 0.5347 GB, free: 9.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/0.4808, allocations: 8.169 MB / 0.5426 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04543/0.5263, allocations: 39.41 MB / 0.5811 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009823/0.5362, allocations: 3.3 MB / 0.5843 GB, free: 9.867 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.5383, allocations: 1.054 MB / 0.5854 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.5487, allocations: 5.982 MB / 0.5912 GB, free: 2.484 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.5487, allocations: 55.31 kB / 0.5913 GB, free: 2.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 4.688e-06/0.5488, allocations: 4 kB / 0.5913 GB, free: 2.422 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02419/0.573, allocations: 9.523 MB / 0.6006 GB, free: 8.812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.796e-05/0.5731, allocations: 148.5 kB / 0.6007 GB, free: 8.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007517/0.5806, allocations: 4.051 MB / 0.6047 GB, free: 4.559 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002714/0.5809, allocations: 49.7 kB / 0.6047 GB, free: 4.504 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002484/0.5834, allocations: 3.175 MB / 0.6078 GB, free: 1.328 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000828/0.5842, allocations: 0.6344 MB / 0.6084 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002733/0.587, allocations: 1.209 MB / 0.6096 GB, free: 15.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.5871, allocations: 309.1 kB / 0.6099 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003099/0.5902, allocations: 1.644 MB / 0.6115 GB, free: 13.53 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005745/0.596, allocations: 5.502 MB / 0.6169 GB, free: 6.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008805/0.6048, allocations: 7.786 MB / 0.6245 GB, free: 13.02 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/0.605, allocations: 40 kB / 0.6245 GB, free: 12.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01386/0.6188, allocations: 6.87 MB / 0.6312 GB, free: 6.285 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001871/0.6191, allocations: 68.03 kB / 0.6313 GB, free: 6.219 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002697/0.6193, allocations: 136 kB / 0.6314 GB, free: 6.086 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002766/0.6196, allocations: 180 kB / 0.6316 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004529/0.6242, allocations: 1.423 MB / 0.633 GB, free: 4.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002781/0.6245, allocations: 271.9 kB / 0.6333 GB, free: 4.219 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004142/0.6286, allocations: 299.6 kB / 0.6335 GB, free: 3.926 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009716/0.6296, allocations: 375.9 kB / 0.6339 GB, free: 3.559 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004435/0.6341, allocations: 2.035 MB / 0.6359 GB, free: 1.512 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007931/0.6349, allocations: 347.4 kB / 0.6362 GB, free: 1.168 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.6362, allocations: 422.7 kB / 0.6366 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/0.6363, allocations: 20 kB / 0.6366 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.6363, allocations: 0 / 0.6366 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.6363, allocations: 7.984 kB / 0.6366 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.648, allocations: 5.849 MB / 0.6424 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/0.648, allocations: 20.03 kB / 0.6424 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6491, allocations: 279.5 kB / 0.6426 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.546e-05/0.6491, allocations: 24 kB / 0.6427 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.6492, allocations: 55.98 kB / 0.6427 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.857e-05/0.6493, allocations: 35.86 kB / 0.6428 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-05/0.6493, allocations: 27.88 kB / 0.6428 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004156/0.6534, allocations: 3.309 MB / 0.646 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009148/0.6544, allocations: 416.5 kB / 0.6464 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006401/0.655, allocations: 47.98 kB / 0.6465 GB, free: 6.133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.6565, allocations: 67.95 kB / 0.6465 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.6567, allocations: 147.4 kB / 0.6467 GB, free: 5.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.6568, allocations: 74.56 kB / 0.6467 GB, free: 5.852 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004592/0.6614, allocations: 2.512 MB / 0.6492 GB, free: 3.328 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6614, allocations: 0 / 0.6492 GB, free: 3.328 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005483/0.6669, allocations: 0.875 MB / 0.65 GB, free: 2.453 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005357/0.6723, allocations: 3.978 MB / 0.6539 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007594/0.6799, allocations: 3.982 MB / 0.6578 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/0.6799, allocations: 4 kB / 0.6578 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.6811, allocations: 0.7536 MB / 0.6586 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004265/0.6854, allocations: 470.4 kB / 0.659 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07397/0.7594, allocations: 47.29 MB / 0.7052 GB, free: 1.391 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1941/0.9535, allocations: 3.164 MB / 0.7083 GB, free: 200.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005263/0.9588, allocations: 1.815 MB / 0.71 GB, free: 200 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00272/0.9616, allocations: 1.863 MB / 0.7119 GB, free: 200 MB / 0.545 GB Notification: Performance of SimCode: time 1.473e-06/0.9616, allocations: 0 / 0.7119 GB, free: 200 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08953/1.051, allocations: 62.56 MB / 0.773 GB, free: 152.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.633/9.685, allocations: 7.359 kB / 0.773 GB, free: 152.7 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches