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.001377/0.001377, allocations: 114.4 kB / 17.78 MB, free: 5.246 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.001696/0.001696, allocations: 183 kB / 18.71 MB, free: 4.32 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.387/1.387, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.237/0.237, allocations: 44.18 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 67.89 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4241/0.4253, allocations: 60.81 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01359/0.439, allocations: 11.41 MB / 0.53 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.4495, allocations: 4.035 MB / 0.534 GB, free: 8.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002862/0.4524, allocations: 67.19 kB / 0.534 GB, free: 8.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005638/0.4581, allocations: 2.487 MB / 0.5365 GB, free: 6.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007171/0.4654, allocations: 1.916 MB / 0.5383 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.4677, allocations: 0.7822 MB / 0.5391 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008376/0.4761, allocations: 4.427 MB / 0.5434 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004714/0.4809, allocations: 3.334 MB / 0.5467 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/0.4839, allocations: 1.565 MB / 0.5482 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003072/0.487, allocations: 2.22 MB / 0.5504 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006753/0.4876, allocations: 332 kB / 0.5507 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.4898, allocations: 0.9909 MB / 0.5517 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.4921, allocations: 1.944 MB / 0.5536 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002947/0.495, allocations: 2.241 MB / 0.5558 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008442/0.5035, allocations: 6.88 MB / 0.5625 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5035, allocations: 0 / 0.5625 GB, free: 15.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.5035, allocations: 0 / 0.5625 GB, free: 15.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002913/0.5038, allocations: 0 / 0.5625 GB, free: 15.25 MB / 430.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.01198/0.5158, allocations: 4.827 MB / 0.5672 GB, free: 10.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.5159, allocations: 8.031 kB / 0.5672 GB, free: 10.35 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007436/0.5233, allocations: 1.945 MB / 0.5691 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004462/0.5278, allocations: 2.383 MB / 0.5714 GB, free: 5.949 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.528, allocations: 254.4 kB / 0.5717 GB, free: 5.699 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006637/0.5287, allocations: 331.8 kB / 0.572 GB, free: 5.375 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.5472, allocations: 10.2 MB / 0.5819 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.5474, allocations: 51.52 kB / 0.582 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004414/0.5479, allocations: 163.8 kB / 0.5821 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00289/0.5507, allocations: 1.908 MB / 0.584 GB, free: 8.258 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01747/0.5682, allocations: 8.142 MB / 0.592 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05151/0.6198, allocations: 39.26 MB / 0.6303 GB, free: 7.652 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008353/0.6282, allocations: 3.28 MB / 0.6335 GB, free: 4.207 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.6299, allocations: 1.051 MB / 0.6345 GB, free: 3.137 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009265/0.6392, allocations: 5.902 MB / 0.6403 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/0.6393, allocations: 63.38 kB / 0.6404 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.629e-06/0.6393, allocations: 0 / 0.6404 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02586/0.6652, allocations: 9.423 MB / 0.6496 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.6653, allocations: 200.9 kB / 0.6497 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006999/0.6723, allocations: 4.043 MB / 0.6537 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.6726, allocations: 49.7 kB / 0.6537 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00264/0.6753, allocations: 3.186 MB / 0.6569 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008245/0.6761, allocations: 0.6327 MB / 0.6575 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002005/0.6781, allocations: 1.218 MB / 0.6587 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.106e-05/0.6782, allocations: 305.1 kB / 0.659 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.6811, allocations: 1.655 MB / 0.6606 GB, free: 7.828 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005583/0.6867, allocations: 5.519 MB / 0.666 GB, free: 380 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009126/0.6958, allocations: 7.793 MB / 0.6736 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.696, allocations: 36 kB / 0.6736 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01188/0.7078, allocations: 6.91 MB / 0.6804 GB, free: 15.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.708, allocations: 60 kB / 0.6804 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000192/0.7082, allocations: 140.2 kB / 0.6805 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001991/0.7084, allocations: 180 kB / 0.6807 GB, free: 15.33 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004252/0.7127, allocations: 1.435 MB / 0.6821 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002784/0.713, allocations: 278.9 kB / 0.6824 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/0.7169, allocations: 291.6 kB / 0.6827 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006468/0.7176, allocations: 384 kB / 0.683 GB, free: 12.96 MB / 0.545 GB 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.003581/0.7212, allocations: 2.025 MB / 0.685 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007521/0.7219, allocations: 347.5 kB / 0.6853 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.7246, allocations: 1.341 MB / 0.6866 GB, free: 9.227 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.168e-05/0.7246, allocations: 23.98 kB / 0.6867 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.7246, allocations: 0 / 0.6867 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.7246, allocations: 7.922 kB / 0.6867 GB, free: 9.195 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/0.7371, allocations: 5.825 MB / 0.6924 GB, free: 3.059 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.915e-05/0.7372, allocations: 20.16 kB / 0.6924 GB, free: 3.039 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.7383, allocations: 283.5 kB / 0.6927 GB, free: 2.762 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-05/0.7384, allocations: 32 kB / 0.6927 GB, free: 2.73 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000162/0.7385, allocations: 48 kB / 0.6927 GB, free: 2.684 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.823e-05/0.7386, allocations: 31.92 kB / 0.6928 GB, free: 2.652 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2e-05/0.7386, allocations: 27.88 kB / 0.6928 GB, free: 2.625 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004891/0.7435, allocations: 3.294 MB / 0.696 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.7447, allocations: 416.5 kB / 0.6964 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007023/0.7454, allocations: 47.98 kB / 0.6964 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/0.7471, allocations: 59.97 kB / 0.6965 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.7473, allocations: 147.4 kB / 0.6966 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7474, allocations: 67.98 kB / 0.6967 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005417/0.7529, allocations: 2.511 MB / 0.6992 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7529, allocations: 4 kB / 0.6992 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006229/0.7591, allocations: 0.9062 MB / 0.7 GB, free: 10.89 MB / 0.5606 GB 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.0006186/0.7598, allocations: 190.7 kB / 0.7002 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006724/0.7665, allocations: 3.835 MB / 0.704 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-05/0.7665, allocations: 4 kB / 0.704 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.7677, allocations: 0.7499 MB / 0.7047 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003584/0.7713, allocations: 469.2 kB / 0.7052 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.7878, allocations: 8.714 MB / 0.7137 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005213/0.7931, allocations: 3.177 MB / 0.7168 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004638/0.7978, allocations: 1.816 MB / 0.7185 GB, free: 7.66 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008802/0.7987, allocations: 243.4 kB / 0.7188 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of SimCode: time 1.673e-06/0.7987, allocations: 0 / 0.7188 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of Templates: time 0.3905/1.189, allocations: 25.26 MB / 0.7434 GB, free: 176 MB / 0.5762 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