Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 104.2 kB / 17.63 MB, free: 5.531 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.001251/0.001251, allocations: 191.9 kB / 18.56 MB, free: 4.609 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.316/1.316, allocations: 222.9 MB / 242.2 MB, free: 15.24 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.2196/0.2196, allocations: 44.19 MB / 336.6 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 64.27 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1317, allocations: 60.83 MB / 469.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01332/0.1451, allocations: 11.38 MB / 480.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009634/0.1548, allocations: 4.042 MB / 484.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002306/0.1571, allocations: 67.75 kB / 484.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004962/0.1621, allocations: 2.503 MB / 487.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005512/0.1677, allocations: 1.867 MB / 489.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001819/0.1695, allocations: 0.7683 MB / 489.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006521/0.176, allocations: 4.428 MB / 494.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00487/0.1809, allocations: 3.327 MB / 497.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003184/0.1841, allocations: 1.561 MB / 499.2 MB, free: 272 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003656/0.1878, allocations: 2.227 MB / 0.4897 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001333/0.1892, allocations: 332 kB / 0.49 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.1921, allocations: 0.9831 MB / 0.491 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00306/0.1951, allocations: 1.936 MB / 0.4928 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006002/0.2011, allocations: 2.245 MB / 0.495 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007849/0.209, allocations: 6.631 MB / 0.5015 GB, free: 1.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.209, allocations: 0 / 0.5015 GB, free: 1.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.209, allocations: 0 / 0.5015 GB, free: 1.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001479/0.2092, allocations: 0 / 0.5015 GB, free: 1.871 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.2339/0.4431, allocations: 4.829 MB / 0.5062 GB, free: 46.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.4432, allocations: 11.84 kB / 0.5062 GB, free: 46.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008249/0.4514, allocations: 1.946 MB / 0.5081 GB, free: 46.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006009/0.4575, allocations: 2.343 MB / 0.5104 GB, free: 45.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/0.4578, allocations: 251.5 kB / 0.5107 GB, free: 45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/0.4585, allocations: 328.7 kB / 0.511 GB, free: 44.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/0.4802, allocations: 10.21 MB / 0.521 GB, free: 39.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.4804, allocations: 46.8 kB / 0.521 GB, free: 39.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003885/0.4807, allocations: 157.4 kB / 0.5211 GB, free: 39.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002509/0.4833, allocations: 1.911 MB / 0.523 GB, free: 38.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01345/0.4967, allocations: 8.13 MB / 0.531 GB, free: 31.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03815/0.5349, allocations: 39.42 MB / 0.5695 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007947/0.5429, allocations: 3.285 MB / 0.5727 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.5444, allocations: 1.049 MB / 0.5737 GB, free: 1.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00833/0.5528, allocations: 5.903 MB / 0.5795 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.5528, allocations: 55.55 kB / 0.5795 GB, free: 11.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.446e-06/0.5528, allocations: 0 / 0.5795 GB, free: 11.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02072/0.5735, allocations: 9.425 MB / 0.5887 GB, free: 2.066 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.5737, allocations: 153.4 kB / 0.5889 GB, free: 1.887 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005063/0.5787, allocations: 4.047 MB / 0.5928 GB, free: 13.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.5788, allocations: 45.7 kB / 0.5929 GB, free: 13.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/0.581, allocations: 3.179 MB / 0.596 GB, free: 10.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005535/0.5816, allocations: 0.6404 MB / 0.5966 GB, free: 9.887 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.5829, allocations: 1.21 MB / 0.5978 GB, free: 8.664 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.583, allocations: 309.1 kB / 0.5981 GB, free: 8.359 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/0.5854, allocations: 1.656 MB / 0.5997 GB, free: 6.699 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00499/0.5904, allocations: 5.509 MB / 0.6051 GB, free: 15.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008393/0.5989, allocations: 7.788 MB / 0.6127 GB, free: 5.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/0.599, allocations: 43.94 kB / 0.6127 GB, free: 5.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01084/0.6098, allocations: 6.91 MB / 0.6194 GB, free: 14.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.917e-05/0.6099, allocations: 67.98 kB / 0.6195 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/0.6101, allocations: 140.8 kB / 0.6196 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.6102, allocations: 180 kB / 0.6198 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003672/0.6139, allocations: 1.431 MB / 0.6212 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002009/0.6141, allocations: 267.2 kB / 0.6215 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003714/0.6178, allocations: 291.6 kB / 0.6218 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004341/0.6183, allocations: 384 kB / 0.6221 GB, free: 11.86 MB / 462.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 (775): * Single equations (assignments): 772 * 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.003165/0.6215, allocations: 2.033 MB / 0.6241 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006048/0.6221, allocations: 351.5 kB / 0.6244 GB, free: 9.465 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.6242, allocations: 1.34 MB / 0.6257 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.262e-05/0.6242, allocations: 16 kB / 0.6258 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/0.6243, allocations: 4.469 kB / 0.6258 GB, free: 8.098 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.6243, allocations: 7.969 kB / 0.6258 GB, free: 8.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009162/0.6335, allocations: 5.83 MB / 0.6315 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/0.6335, allocations: 16 kB / 0.6315 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009318/0.6344, allocations: 283.5 kB / 0.6318 GB, free: 1.652 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.46e-05/0.6345, allocations: 31.88 kB / 0.6318 GB, free: 1.621 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.523e-05/0.6346, allocations: 44 kB / 0.6318 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.748e-05/0.6346, allocations: 36.55 kB / 0.6319 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.767e-05/0.6346, allocations: 28.28 kB / 0.6319 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.6385, allocations: 3.277 MB / 0.6351 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007983/0.6393, allocations: 416.4 kB / 0.6355 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/0.6396, allocations: 55.92 kB / 0.6355 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.6407, allocations: 66.27 kB / 0.6356 GB, free: 13.44 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.6408, allocations: 143.4 kB / 0.6357 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-05/0.6409, allocations: 71.98 kB / 0.6358 GB, free: 13.23 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003608/0.6445, allocations: 2.507 MB / 0.6383 GB, free: 10.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6446, allocations: 0 / 0.6383 GB, free: 10.71 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004721/0.6493, allocations: 0.9037 MB / 0.6391 GB, free: 9.809 MB / 478.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.0004287/0.6497, allocations: 196 kB / 0.6393 GB, free: 9.613 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006663/0.6564, allocations: 3.995 MB / 0.6432 GB, free: 5.676 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-05/0.6564, allocations: 4 kB / 0.6432 GB, free: 5.672 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.6576, allocations: 0.74 MB / 0.644 GB, free: 4.934 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.6605, allocations: 476.1 kB / 0.6444 GB, free: 4.473 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.6751, allocations: 8.822 MB / 0.653 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003474/0.6786, allocations: 3.177 MB / 0.6561 GB, free: 8.164 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004494/0.6831, allocations: 1.808 MB / 0.6579 GB, free: 6.348 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005321/0.6837, allocations: 243.4 kB / 0.6581 GB, free: 6.109 MB / 494.1 MB Notification: Performance of SimCode: time 1.482e-06/0.6837, allocations: 0 / 0.6581 GB, free: 6.109 MB / 494.1 MB Notification: Performance of Templates: time 0.06046/0.7442, allocations: 28.66 MB / 0.6861 GB, free: 9.566 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches