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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001481/0.002684, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009053/0.0009053, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00136/0.002266, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8579/0.8579, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1595/1.017, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.1434/0.1434, allocations: 32.8 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02081/0.1642, allocations: 12.54 MB / 284.5 MB, free: 9.707 MB / 282.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.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.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 2.024e-06/2.024e-06, allocations: 0 / 285.9 MB, free: 8.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.7e-05/2.903e-05, allocations: 2.312 kB / 285.9 MB, free: 8.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.007673/0.007702, allocations: 9.962 MB / 295.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005575/0.01328, allocations: 3.921 MB / 299.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008266/0.0141, allocations: 71.62 kB / 299.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002768/0.01687, allocations: 2.121 MB / 301.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002251/0.01912, allocations: 1.792 MB / 303.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008408/0.01996, allocations: 0.7132 MB / 304.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.02294, allocations: 4.024 MB / 308.5 MB, free: 1.703 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.02449, allocations: 2.27 MB / 310.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001733/0.02622, allocations: 2.397 MB / 313.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001416/0.02764, allocations: 1.913 MB / 315 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00025/0.02789, allocations: 272 kB / 315.3 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.02907, allocations: 1.186 MB / 316.5 MB, free: 9.59 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008528/0.02992, allocations: 1.629 MB / 318.1 MB, free: 7.957 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006389/0.03056, allocations: 0.8879 MB / 319 MB, free: 7.066 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.03306, allocations: 3.931 MB / 322.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.016e-06/0.03307, allocations: 0 / 322.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.03307, allocations: 4 kB / 323 MB, free: 3.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.03309, allocations: 0 / 323 MB, free: 3.117 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.1298/0.1629, allocations: 4.786 MB / 327.7 MB, free: 27.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1629, allocations: 9.25 kB / 327.7 MB, free: 27.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004688/0.1676, allocations: 1.121 MB / 328.9 MB, free: 27.97 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/0.1704, allocations: 1.681 MB / 330.5 MB, free: 27.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.1705, allocations: 189.4 kB / 330.7 MB, free: 27.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004439/0.171, allocations: 277.8 kB / 331 MB, free: 27.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005495/0.1765, allocations: 4.333 MB / 335.3 MB, free: 25.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001007/0.1766, allocations: 37.77 kB / 335.4 MB, free: 25.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002724/0.1768, allocations: 129.5 kB / 335.5 MB, free: 25.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001529/0.1784, allocations: 1.441 MB / 336.9 MB, free: 25.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.1824, allocations: 2.154 MB / 339.1 MB, free: 25.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02702/0.2095, allocations: 26.82 MB / 365.9 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003841/0.2133, allocations: 1.423 MB / 367.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005429/0.2138, allocations: 347 kB / 367.7 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005938/0.2198, allocations: 3.433 MB / 371.1 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.2198, allocations: 48.12 kB / 371.2 MB, free: 10.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=137): time 4.138e-06/0.2198, allocations: 4.625 kB / 371.2 MB, free: 10.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=169): time 0.02123/0.2411, allocations: 7.353 MB / 378.5 MB, free: 2.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.2411, allocations: 152.2 kB / 378.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/0.244, allocations: 3.018 MB / 381.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.181e-05/0.2441, allocations: 45.7 kB / 381.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.2456, allocations: 2.812 MB / 384.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005044/0.2461, allocations: 0.6784 MB / 385.2 MB, free: 12.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.2473, allocations: 1.128 MB / 386.3 MB, free: 10.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.323e-05/0.2473, allocations: 301.1 kB / 386.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.2487, allocations: 0.7699 MB / 387.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003188/0.2519, allocations: 4.353 MB / 391.8 MB, free: 3.602 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005249/0.2572, allocations: 6.039 MB / 397.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.759e-05/0.2572, allocations: 36 kB / 397.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.006715/0.2639, allocations: 4.367 MB / 402.2 MB, free: 7.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.533e-05/0.264, allocations: 60 kB / 402.3 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/0.2642, allocations: 139.9 kB / 402.4 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/0.2662, allocations: 0.7178 MB / 403.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003064/0.2693, allocations: 1.466 MB / 404.6 MB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.2725, allocations: 2.992 MB / 407.6 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/0.2749, allocations: 263.7 kB / 407.8 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/0.2753, allocations: 320 kB / 408.1 MB, free: 1.277 MB / 362.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.001011/0.2763, allocations: 0.6068 MB / 408.8 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000349/0.2766, allocations: 203.8 kB / 409 MB, free: 468 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.2786, allocations: 1.219 MB / 410.2 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/0.2786, allocations: 12 kB / 410.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.2786, allocations: 8 kB / 410.2 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.2786, allocations: 11.91 kB / 410.2 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005618/0.2843, allocations: 3.788 MB / 414 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/0.2843, allocations: 17.91 kB / 414 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.2848, allocations: 231.7 kB / 414.2 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004217/0.2853, allocations: 285.8 kB / 414.5 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/0.2869, allocations: 0.7038 MB / 415.2 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-05/0.2869, allocations: 31.98 kB / 415.2 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.2897, allocations: 2.591 MB / 417.8 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.2897, allocations: 4 kB / 417.8 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.2922, allocations: 2.001 MB / 419.8 MB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003881/0.2926, allocations: 29.52 kB / 419.9 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005873/0.2932, allocations: 32 kB / 419.9 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.2933, allocations: 100.8 kB / 420 MB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.319e-05/0.2934, allocations: 35.98 kB / 420 MB, free: 5.137 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001008/0.2944, allocations: 1.083 MB / 421.1 MB, free: 4.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2944, allocations: 4.031 kB / 421.1 MB, free: 4.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002762/0.2972, allocations: 0.9803 MB / 422.1 MB, free: 3.074 MB / 378.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.0003522/0.2975, allocations: 172 kB / 422.3 MB, free: 2.898 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.3003, allocations: 2.669 MB / 424.9 MB, free: 312 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001649/0.3004, allocations: 110.7 kB / 425.1 MB, free: 188 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006615/0.3011, allocations: 0.6875 MB / 425.7 MB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.3033, allocations: 2.451 MB / 428.2 MB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008831/0.3121, allocations: 6.568 MB / 434.8 MB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009271/0.313, allocations: 1.093 MB / 435.8 MB, free: 4.934 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001111/0.3141, allocations: 462.3 kB / 436.3 MB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006481/0.3148, allocations: 497.2 kB / 436.8 MB, free: 3.996 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3148, allocations: 0 / 436.8 MB, free: 3.996 MB / 394.7 MB Notification: Performance of Templates: time 0.04295/0.3577, allocations: 30.63 MB / 467.4 MB, free: 5.523 MB / 426.7 MB " [Timeout remaining time 660] 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4874607492238283]