Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001018/0.001018, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00152/0.002538, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001346/0.001346, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00174/0.003086, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.051/1.051, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08657/1.137, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2803/0.2803, allocations: 34.26 MB / 278.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02557/0.3059, allocations: 13.09 MB / 291.5 MB, free: 7.344 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 292.8 MB, free: 6.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.976e-05/2.083e-05, allocations: 2.969 kB / 292.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.007909/0.00793, allocations: 9.922 MB / 302.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006261/0.01419, allocations: 3.953 MB / 306.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007601/0.01495, allocations: 71.62 kB / 306.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.01694, allocations: 2.114 MB / 308.9 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00229/0.01923, allocations: 1.765 MB / 310.7 MB, free: 4.297 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.02031, allocations: 0.7093 MB / 311.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002652/0.02297, allocations: 4.113 MB / 315.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.02451, allocations: 2.274 MB / 317.8 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.02666, allocations: 2.396 MB / 320.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.02812, allocations: 1.913 MB / 322.1 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002739/0.0284, allocations: 272 kB / 322.3 MB, free: 8.535 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.02961, allocations: 1.17 MB / 323.5 MB, free: 7.363 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008674/0.03048, allocations: 1.598 MB / 325.1 MB, free: 5.762 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008996/0.03138, allocations: 0.8801 MB / 326 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002861/0.03424, allocations: 3.884 MB / 329.9 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.03424, allocations: 0 / 329.9 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.03425, allocations: 0 / 329.9 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.597e-05/0.03429, allocations: 0 / 329.9 MB, free: 0.9805 MB / 314.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.004599/0.03889, allocations: 4.768 MB / 334.6 MB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.03892, allocations: 12.03 kB / 334.7 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003175/0.0421, allocations: 1.113 MB / 335.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/0.04404, allocations: 1.681 MB / 337.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-05/0.04413, allocations: 193.3 kB / 337.6 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003298/0.04446, allocations: 272.5 kB / 337.9 MB, free: 8.816 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004538/0.049, allocations: 4.35 MB / 342.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.62e-05/0.04907, allocations: 47.61 kB / 342.3 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/0.04927, allocations: 127.9 kB / 342.4 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001203/0.05048, allocations: 1.438 MB / 343.9 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002883/0.05336, allocations: 2.164 MB / 346 MB, free: 24 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/0.07158, allocations: 26.82 MB / 372.8 MB, free: 4.168 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.07437, allocations: 1.426 MB / 374.3 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003762/0.07475, allocations: 347 kB / 374.6 MB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004182/0.07893, allocations: 3.438 MB / 378 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.07897, allocations: 47.56 kB / 378.1 MB, free: 14.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 5.56e-06/0.07898, allocations: 0 / 378.1 MB, free: 14.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=169): time 0.01606/0.09503, allocations: 7.346 MB / 385.4 MB, free: 7.441 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.09508, allocations: 145.5 kB / 385.6 MB, free: 7.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002015/0.0971, allocations: 3.014 MB / 388.6 MB, free: 4.242 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.18e-05/0.09718, allocations: 53.7 kB / 388.6 MB, free: 4.184 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001341/0.09852, allocations: 2.802 MB / 391.5 MB, free: 1.348 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.09888, allocations: 0.6745 MB / 392.1 MB, free: 0.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000871/0.09975, allocations: 1.136 MB / 393.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.09981, allocations: 305.1 kB / 393.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.1008, allocations: 0.7582 MB / 394.3 MB, free: 14.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002865/0.1037, allocations: 4.364 MB / 398.7 MB, free: 8.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004138/0.1078, allocations: 6.022 MB / 404.7 MB, free: 380 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.605e-05/0.1079, allocations: 40 kB / 404.7 MB, free: 340 kB / 394.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.00508/0.1129, allocations: 4.37 MB / 409.1 MB, free: 11.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.113, allocations: 72.86 kB / 409.2 MB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.634e-05/0.1131, allocations: 136 kB / 409.3 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.1147, allocations: 0.7104 MB / 410 MB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.1168, allocations: 1.466 MB / 411.5 MB, free: 9.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.1199, allocations: 2.991 MB / 414.5 MB, free: 6.473 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.1217, allocations: 263.7 kB / 414.7 MB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005125/0.1222, allocations: 312 kB / 415 MB, free: 5.91 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.0008569/0.123, allocations: 0.6107 MB / 415.7 MB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.1233, allocations: 207.8 kB / 415.9 MB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.1253, allocations: 1.211 MB / 417.1 MB, free: 3.855 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.1253, allocations: 19.94 kB / 417.1 MB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1253, allocations: 8 kB / 417.1 MB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.1253, allocations: 11.91 kB / 417.1 MB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004942/0.1302, allocations: 3.788 MB / 420.9 MB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.1303, allocations: 8 kB / 420.9 MB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.1308, allocations: 239.5 kB / 421.1 MB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.1311, allocations: 289.7 kB / 421.4 MB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001882/0.133, allocations: 0.7056 MB / 422.1 MB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.1331, allocations: 28 kB / 422.2 MB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.1356, allocations: 2.587 MB / 424.7 MB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1356, allocations: 4.031 kB / 424.7 MB, free: 12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.138, allocations: 1.991 MB / 426.7 MB, free: 9.957 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.1382, allocations: 32 kB / 426.8 MB, free: 9.926 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.1387, allocations: 31.98 kB / 426.8 MB, free: 9.895 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.1389, allocations: 104.7 kB / 426.9 MB, free: 9.793 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.614e-05/0.1389, allocations: 36 kB / 426.9 MB, free: 9.758 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008093/0.1397, allocations: 1.074 MB / 428 MB, free: 8.688 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1397, allocations: 0 / 428 MB, free: 8.688 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002473/0.1422, allocations: 0.9608 MB / 429 MB, free: 7.727 MB / 426.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.0002992/0.1425, allocations: 160 kB / 429.1 MB, free: 7.562 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002721/0.1452, allocations: 2.667 MB / 431.8 MB, free: 4.914 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001583/0.1454, allocations: 106.8 kB / 431.9 MB, free: 4.797 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006637/0.146, allocations: 0.6893 MB / 432.6 MB, free: 4.094 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/0.148, allocations: 2.458 MB / 435 MB, free: 1.316 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1477/0.2957, allocations: 6.565 MB / 441.6 MB, free: 119.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007975/0.2965, allocations: 1.087 MB / 442.7 MB, free: 119.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001021/0.2975, allocations: 460.2 kB / 443.1 MB, free: 119.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005567/0.2981, allocations: 490.1 kB / 443.6 MB, free: 119.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.693e-06/0.2981, allocations: 0 / 443.6 MB, free: 119.6 MB / 426.7 MB Notification: Performance of Templates: time 0.0368/0.3349, allocations: 30.34 MB / 474 MB, free: 98.23 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.784831089898944]