Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9792/0.9792, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3347/0.3347, allocations: 32.8 MB / 294.3 MB, free: 1.211 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 376 MB, free: 4.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.609e-05, allocations: 5.547 kB / 376 MB, free: 4.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.008049/0.008075, allocations: 10.04 MB / 386.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006511/0.01459, allocations: 3.806 MB / 389.9 MB, free: 6.727 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.01602, allocations: 71.62 kB / 389.9 MB, free: 6.656 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002743/0.01876, allocations: 2.219 MB / 392.2 MB, free: 4.43 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003574/0.02233, allocations: 1.781 MB / 393.9 MB, free: 2.641 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.02388, allocations: 0.76 MB / 394.7 MB, free: 1.879 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005076/0.02896, allocations: 4.409 MB / 399.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003885/0.03284, allocations: 2.496 MB / 401.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004503/0.03735, allocations: 2.467 MB / 404.1 MB, free: 8.438 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002606/0.03995, allocations: 2.015 MB / 406.1 MB, free: 6.418 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008254/0.04078, allocations: 268 kB / 406.4 MB, free: 6.156 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.04259, allocations: 1.135 MB / 407.5 MB, free: 5.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002113/0.04471, allocations: 1.784 MB / 409.3 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002084/0.04679, allocations: 1.079 MB / 410.4 MB, free: 2.148 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01615/0.06294, allocations: 4.231 MB / 414.6 MB, free: 13.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.06295, allocations: 0 / 414.6 MB, free: 13.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.06295, allocations: 0 / 414.6 MB, free: 13.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000206/0.06316, allocations: 3.938 kB / 414.6 MB, free: 13.9 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01896/0.08212, allocations: 4.634 MB / 419.2 MB, free: 9.203 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.08216, allocations: 12.03 kB / 419.2 MB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0238/0.106, allocations: 2.873 MB / 422.1 MB, free: 6.312 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006285/0.1122, allocations: 2.032 MB / 424.1 MB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.1124, allocations: 193.3 kB / 424.3 MB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006069/0.113, allocations: 280.5 kB / 424.6 MB, free: 3.758 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007853/0.1208, allocations: 5.324 MB / 429.9 MB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.345e-05/0.1209, allocations: 39.64 kB / 430 MB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002445/0.1212, allocations: 123.9 kB / 430.1 MB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001466/0.1226, allocations: 1.684 MB / 431.8 MB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005696/0.1283, allocations: 2.724 MB / 434.5 MB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1891/0.3174, allocations: 37.59 MB / 472.1 MB, free: 62.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003982/0.3214, allocations: 1.738 MB / 473.8 MB, free: 62.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006848/0.3221, allocations: 0.498 MB / 474.3 MB, free: 62.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005702/0.3278, allocations: 3.885 MB / 478.2 MB, free: 61.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/0.3278, allocations: 59.23 kB / 478.3 MB, free: 61.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 7.474e-06/0.3278, allocations: 3.031 kB / 478.3 MB, free: 61.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.02527/0.3531, allocations: 11.76 MB / 490 MB, free: 57.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.3532, allocations: 196.2 kB / 490.2 MB, free: 57.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.3569, allocations: 3.395 MB / 493.6 MB, free: 56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002451/0.3572, allocations: 51.8 kB / 493.7 MB, free: 55.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.359, allocations: 3.139 MB / 496.8 MB, free: 53.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008816/0.3599, allocations: 0.7024 MB / 497.5 MB, free: 53.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/0.3614, allocations: 1.291 MB / 498.8 MB, free: 52.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.784e-05/0.3615, allocations: 477.8 kB / 499.3 MB, free: 51.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.3628, allocations: 0.6657 MB / 499.9 MB, free: 51.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003782/0.3666, allocations: 6.18 MB / 0.4942 GB, free: 44.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006178/0.3728, allocations: 7.497 MB / 0.5016 GB, free: 36.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002273/0.373, allocations: 36.66 kB / 0.5016 GB, free: 36.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01137/0.3844, allocations: 5.653 MB / 0.5071 GB, free: 34.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.96e-05/0.3845, allocations: 62.91 kB / 0.5072 GB, free: 34.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/0.3847, allocations: 129.6 kB / 0.5073 GB, free: 34.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.3871, allocations: 0.9074 MB / 0.5082 GB, free: 34.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003211/0.3903, allocations: 1.356 MB / 0.5095 GB, free: 34.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.3947, allocations: 3.91 MB / 0.5133 GB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004273/0.399, allocations: 363.4 kB / 0.5137 GB, free: 31.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008284/0.3998, allocations: 363.4 kB / 0.514 GB, free: 31.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (730): * Single equations (assignments): 726 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00161/0.4015, allocations: 0.6446 MB / 0.5147 GB, free: 30.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005785/0.402, allocations: 368.7 kB / 0.515 GB, free: 30.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.4049, allocations: 1.628 MB / 0.5166 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.208e-05/0.4049, allocations: 17.38 kB / 0.5166 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.4049, allocations: 6.391 kB / 0.5166 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.4049, allocations: 8.219 kB / 0.5166 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007881/0.4128, allocations: 4.804 MB / 0.5213 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.4128, allocations: 4 kB / 0.5213 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000615/0.4134, allocations: 232.3 kB / 0.5215 GB, free: 25.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/0.4152, allocations: 0.7186 MB / 0.5222 GB, free: 25.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.4153, allocations: 27.75 kB / 0.5223 GB, free: 25.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.4185, allocations: 3.45 MB / 0.5256 GB, free: 22.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4185, allocations: 4 kB / 0.5256 GB, free: 22.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/0.422, allocations: 2.637 MB / 0.5282 GB, free: 19.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007418/0.4228, allocations: 303.5 kB / 0.5285 GB, free: 19.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.423, allocations: 24 kB / 0.5285 GB, free: 19.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000645/0.4237, allocations: 108.3 kB / 0.5286 GB, free: 19.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.4239, allocations: 113.6 kB / 0.5287 GB, free: 19.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.695e-05/0.4239, allocations: 43.89 kB / 0.5288 GB, free: 19.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001631/0.4256, allocations: 1.43 MB / 0.5302 GB, free: 18.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4256, allocations: 0 / 0.5302 GB, free: 18.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003763/0.4293, allocations: 0.9632 MB / 0.5311 GB, free: 17.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (revolute.phi,revolute.w) * 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 (122): * Single equations (assignments): 118 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004569/0.4298, allocations: 171.6 kB / 0.5313 GB, free: 16.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004999/0.4348, allocations: 3.027 MB / 0.5342 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.4348, allocations: 0 / 0.5342 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.4358, allocations: 0.8021 MB / 0.535 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.4376, allocations: 354.6 kB / 0.5354 GB, free: 13.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009327/0.4469, allocations: 6.574 MB / 0.5418 GB, free: 7.066 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.448, allocations: 1.101 MB / 0.5429 GB, free: 6.266 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003139/0.4511, allocations: 1.557 MB / 0.5444 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000562/0.4517, allocations: 204.5 kB / 0.5446 GB, free: 4.844 MB / 410.7 MB Notification: Performance of SimCode: time 3.377e-06/0.4517, allocations: 0 / 0.5446 GB, free: 4.844 MB / 410.7 MB Notification: Performance of Templates: time 0.0555/0.5072, allocations: 29.87 MB / 0.5737 GB, free: 7.543 MB / 442.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.489757129922509]