Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.6 MB / 243.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007667/0.0007669, allocations: 94.58 kB / 295.5 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3552/0.3552, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003063, allocations: 8 kB / 465.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3368, allocations: 62.96 MB / 0.5159 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.02936/0.3662, allocations: 38.8 MB / 0.5538 GB, free: 9.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02194/0.3882, allocations: 8.774 MB / 0.5623 GB, free: 3.613 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009785/0.398, allocations: 180.1 kB / 0.5625 GB, free: 3.586 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008037/0.4061, allocations: 1.994 MB / 0.5645 GB, free: 2.871 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02073/0.4269, allocations: 6.034 MB / 0.5703 GB, free: 80 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003985/0.4309, allocations: 0.6998 MB / 0.571 GB, free: 15.62 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008729/0.4397, allocations: 5.049 MB / 0.576 GB, free: 11.82 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007223/0.447, allocations: 4.378 MB / 0.5802 GB, free: 7.375 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.4502, allocations: 1.277 MB / 0.5815 GB, free: 6.094 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00388/0.4541, allocations: 2.08 MB / 0.5835 GB, free: 4.008 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.4552, allocations: 148 kB / 0.5837 GB, free: 3.863 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.4581, allocations: 0.8073 MB / 0.5844 GB, free: 3.055 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002964/0.4611, allocations: 1.718 MB / 0.5861 GB, free: 1.332 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004356/0.4655, allocations: 1.928 MB / 0.588 GB, free: 15.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007271/0.4728, allocations: 5.211 MB / 0.5931 GB, free: 10.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4729, allocations: 0 / 0.5931 GB, free: 10.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4729, allocations: 0 / 0.5931 GB, free: 10.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003193/0.4732, allocations: 0 / 0.5931 GB, free: 10.16 MB / 410.7 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.01029/0.4835, allocations: 3.949 MB / 0.5969 GB, free: 6.145 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.4836, allocations: 12.86 kB / 0.597 GB, free: 6.133 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007699/0.4913, allocations: 1.996 MB / 0.5989 GB, free: 4.129 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005817/0.4971, allocations: 2.29 MB / 0.6011 GB, free: 1.777 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003148/0.4975, allocations: 258.2 kB / 0.6014 GB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/0.4989, allocations: 323.8 kB / 0.6017 GB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/0.5208, allocations: 10.19 MB / 0.6116 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002732/0.5211, allocations: 55.52 kB / 0.6117 GB, free: 6.172 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001301/0.5225, allocations: 159.8 kB / 0.6119 GB, free: 6.016 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003319/0.5258, allocations: 1.9 MB / 0.6137 GB, free: 4.113 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01917/0.545, allocations: 8.128 MB / 0.6216 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05961/0.6046, allocations: 39.45 MB / 0.6602 GB, free: 3.332 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.6159, allocations: 3.258 MB / 0.6634 GB, free: 15.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002502/0.6185, allocations: 1.052 MB / 0.6644 GB, free: 14.83 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0131/0.6316, allocations: 5.91 MB / 0.6702 GB, free: 8.555 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/0.6318, allocations: 51.5 kB / 0.6702 GB, free: 8.496 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 8.946e-06/0.6318, allocations: 0 / 0.6702 GB, free: 8.496 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.2942/0.926, allocations: 9.415 MB / 0.6794 GB, free: 131.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.9261, allocations: 153 kB / 0.6795 GB, free: 131.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006441/0.9326, allocations: 4.032 MB / 0.6835 GB, free: 130.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002771/0.9329, allocations: 47.77 kB / 0.6835 GB, free: 130.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/0.9346, allocations: 3.176 MB / 0.6866 GB, free: 128 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006554/0.9352, allocations: 0.6451 MB / 0.6873 GB, free: 127.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.9355, allocations: 121 kB / 0.6874 GB, free: 127.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003064/0.9358, allocations: 0.5621 MB / 0.6879 GB, free: 127.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/0.9381, allocations: 1.628 MB / 0.6895 GB, free: 126.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00376/0.9419, allocations: 5.486 MB / 0.6949 GB, free: 120.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006821/0.9487, allocations: 7.759 MB / 0.7024 GB, free: 113.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.9489, allocations: 38.03 kB / 0.7025 GB, free: 113.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01208/0.961, allocations: 6.863 MB / 0.7092 GB, free: 111.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.9611, allocations: 62.62 kB / 0.7092 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001913/0.9613, allocations: 138.1 kB / 0.7094 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002417/0.9616, allocations: 180.5 kB / 0.7095 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/0.9659, allocations: 1.439 MB / 0.711 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002596/0.9662, allocations: 272 kB / 0.7112 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004308/0.9705, allocations: 293 kB / 0.7115 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008548/0.9714, allocations: 375.7 kB / 0.7118 GB, free: 110.7 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004614/0.976, allocations: 2.043 MB / 0.7138 GB, free: 109.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009186/0.9769, allocations: 351.1 kB / 0.7142 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/0.9794, allocations: 1.328 MB / 0.7155 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/0.9794, allocations: 17.91 kB / 0.7155 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.9794, allocations: 2.125 kB / 0.7155 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.9794, allocations: 7.953 kB / 0.7155 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.9897, allocations: 5.825 MB / 0.7212 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/0.9897, allocations: 16.84 kB / 0.7212 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009753/0.9907, allocations: 280.8 kB / 0.7215 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.346e-05/0.9908, allocations: 25.19 kB / 0.7215 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.9908, allocations: 54.81 kB / 0.7216 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.809e-05/0.9909, allocations: 36.61 kB / 0.7216 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.231e-05/0.9909, allocations: 30.97 kB / 0.7216 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003855/0.9948, allocations: 3.261 MB / 0.7248 GB, free: 104.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.9959, allocations: 422.5 kB / 0.7252 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.9963, allocations: 51.19 kB / 0.7253 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.9974, allocations: 61 kB / 0.7253 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.9976, allocations: 150.1 kB / 0.7255 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9e-05/0.9977, allocations: 68.52 kB / 0.7255 GB, free: 103.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004284/1.002, allocations: 2.489 MB / 0.7279 GB, free: 103 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.002, allocations: 0 / 0.7279 GB, free: 103 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005748/1.008, allocations: 0.9064 MB / 0.7288 GB, free: 102.9 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004801/1.008, allocations: 202 kB / 0.729 GB, free: 102.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006028/1.014, allocations: 3.748 MB / 0.7327 GB, free: 99.87 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/1.014, allocations: 0 / 0.7327 GB, free: 99.87 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/1.015, allocations: 0.7473 MB / 0.7334 GB, free: 99.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01095/1.026, allocations: 464.9 kB / 0.7339 GB, free: 98.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/1.042, allocations: 10.85 MB / 0.7445 GB, free: 88.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003077/1.045, allocations: 3.168 MB / 0.7476 GB, free: 86.08 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008425/1.046, allocations: 290.9 kB / 0.7478 GB, free: 85.8 MB / 490.7 MB Notification: Performance of SimCode: time 7.92e-07/1.046, allocations: 0 / 0.7478 GB, free: 85.8 MB / 490.7 MB Notification: Performance of Templates: time 0.0696/1.115, allocations: 52.48 MB / 0.7991 GB, free: 33.66 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches