Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_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.001063/0.001063, allocations: 112.7 kB / 17.04 MB, free: 5.801 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.0011/0.0011, allocations: 195 kB / 17.98 MB, free: 5.016 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.532/1.532, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2338/0.2338, allocations: 43.51 MB / 314.7 MB, free: 492 kB / 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.002505/0.002506, allocations: 67.72 kB / 384.2 MB, free: 56.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1348, allocations: 57.79 MB / 442 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01188/0.1468, allocations: 11.42 MB / 453.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009212/0.1561, allocations: 4.058 MB / 457.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.1585, allocations: 63.81 kB / 457.5 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005025/0.1635, allocations: 2.503 MB / 460 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005883/0.1695, allocations: 1.875 MB / 461.9 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002455/0.1719, allocations: 0.7878 MB / 462.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007703/0.1797, allocations: 4.456 MB / 467.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004684/0.1844, allocations: 3.339 MB / 470.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.1877, allocations: 1.573 MB / 472.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003748/0.1915, allocations: 2.231 MB / 474.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000917/0.1924, allocations: 336 kB / 474.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0022/0.1946, allocations: 0.9753 MB / 475.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001846/0.1965, allocations: 1.936 MB / 477.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002918/0.1994, allocations: 2.26 MB / 479.8 MB, free: 172 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008471/0.2079, allocations: 6.874 MB / 486.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.2079, allocations: 0 / 486.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.208, allocations: 4 kB / 486.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002998/0.2083, allocations: 0 / 486.7 MB, free: 9.266 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01251/0.2208, allocations: 4.83 MB / 491.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.2209, allocations: 11.89 kB / 491.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007331/0.2282, allocations: 1.949 MB / 493.5 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007255/0.2355, allocations: 2.481 MB / 495.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002485/0.2358, allocations: 258.4 kB / 496.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.237, allocations: 331.8 kB / 496.5 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02282/0.2599, allocations: 10.2 MB / 0.4948 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.2601, allocations: 51.52 kB / 0.4949 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005881/0.2607, allocations: 163.8 kB / 0.495 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002981/0.2637, allocations: 1.9 MB / 0.4969 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01776/0.2814, allocations: 8.146 MB / 0.5048 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3454/0.6268, allocations: 39.25 MB / 0.5432 GB, free: 58.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009073/0.636, allocations: 3.27 MB / 0.5464 GB, free: 57.33 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.6379, allocations: 1.057 MB / 0.5474 GB, free: 57.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.6481, allocations: 5.923 MB / 0.5532 GB, free: 54.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.6482, allocations: 49.41 kB / 0.5532 GB, free: 54.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 5.149e-06/0.6482, allocations: 0 / 0.5532 GB, free: 54.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02207/0.6703, allocations: 9.471 MB / 0.5625 GB, free: 50.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.6704, allocations: 205.7 kB / 0.5627 GB, free: 50.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005198/0.6756, allocations: 4.071 MB / 0.5667 GB, free: 48.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001689/0.6758, allocations: 45.17 kB / 0.5667 GB, free: 48.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/0.6774, allocations: 3.187 MB / 0.5698 GB, free: 45.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/0.6779, allocations: 0.6371 MB / 0.5704 GB, free: 45.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/0.6792, allocations: 1.226 MB / 0.5716 GB, free: 44.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.603e-05/0.6793, allocations: 301.1 kB / 0.5719 GB, free: 44.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002078/0.6814, allocations: 1.653 MB / 0.5735 GB, free: 43.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003645/0.685, allocations: 5.523 MB / 0.5789 GB, free: 37.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007699/0.6928, allocations: 7.787 MB / 0.5865 GB, free: 27.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001429/0.693, allocations: 40 kB / 0.5866 GB, free: 27.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01221/0.7052, allocations: 6.904 MB / 0.5933 GB, free: 20.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.7054, allocations: 64 kB / 0.5934 GB, free: 20.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002382/0.7056, allocations: 140.9 kB / 0.5935 GB, free: 20.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001912/0.7058, allocations: 184 kB / 0.5937 GB, free: 20.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004347/0.7102, allocations: 1.433 MB / 0.5951 GB, free: 19.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002317/0.7104, allocations: 267 kB / 0.5953 GB, free: 18.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005369/0.7158, allocations: 299.5 kB / 0.5956 GB, free: 18.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009932/0.7168, allocations: 380 kB / 0.596 GB, free: 18.21 MB / 414.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.004049/0.7209, allocations: 2.036 MB / 0.598 GB, free: 16.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/0.7219, allocations: 348.1 kB / 0.5983 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/0.7249, allocations: 1.34 MB / 0.5996 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.3e-05/0.7249, allocations: 23.94 kB / 0.5996 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/0.725, allocations: 9.672 kB / 0.5996 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-05/0.725, allocations: 3.984 kB / 0.5996 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.7377, allocations: 5.816 MB / 0.6053 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.546e-05/0.7378, allocations: 16 kB / 0.6053 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009527/0.7387, allocations: 295.3 kB / 0.6056 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.867e-05/0.7388, allocations: 24 kB / 0.6056 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.52e-05/0.7388, allocations: 44 kB / 0.6057 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.277e-05/0.7389, allocations: 36.36 kB / 0.6057 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.425e-05/0.7389, allocations: 27.88 kB / 0.6057 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.7425, allocations: 3.273 MB / 0.6089 GB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.7439, allocations: 0.5238 MB / 0.6095 GB, free: 3.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/0.7442, allocations: 59.92 kB / 0.6095 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.7453, allocations: 61.89 kB / 0.6096 GB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.7455, allocations: 147.4 kB / 0.6097 GB, free: 3.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.88e-05/0.7456, allocations: 67.75 kB / 0.6098 GB, free: 3.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003486/0.7491, allocations: 2.527 MB / 0.6122 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7491, allocations: 0 / 0.6122 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005318/0.7544, allocations: 0.9036 MB / 0.6131 GB, free: 84 kB / 414.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.0005026/0.7549, allocations: 200 kB / 0.6133 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006961/0.7619, allocations: 3.827 MB / 0.6171 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/0.7619, allocations: 4 kB / 0.6171 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.763, allocations: 0.7471 MB / 0.6178 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003095/0.7661, allocations: 478.5 kB / 0.6182 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/0.7813, allocations: 8.756 MB / 0.6268 GB, free: 1.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003922/0.7852, allocations: 3.179 MB / 0.6299 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004427/0.7897, allocations: 1.822 MB / 0.6317 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006295/0.7903, allocations: 239.4 kB / 0.6319 GB, free: 12.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7904, allocations: 4 kB / 0.6319 GB, free: 12.64 MB / 446.1 MB Notification: Performance of Templates: time 0.05436/0.8447, allocations: 23.34 MB / 0.6547 GB, free: 5.527 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches