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.0009985/0.0009985, allocations: 79.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.001038/0.001038, allocations: 161 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 1.015/1.015, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.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.2501/0.2501, allocations: 34.26 MB / 295.7 MB, free: 0.7539 MB / 266.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.603e-06/1.603e-06, allocations: 3.938 kB / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.312e-05/2.473e-05, allocations: 5.828 kB / 378.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.008427/0.008451, allocations: 10.04 MB / 388.1 MB, free: 8.539 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006101/0.01455, allocations: 3.798 MB / 391.9 MB, free: 4.727 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007678/0.01532, allocations: 75.62 kB / 392 MB, free: 4.652 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002506/0.01783, allocations: 2.219 MB / 394.2 MB, free: 2.426 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002546/0.02037, allocations: 1.785 MB / 396 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.02147, allocations: 0.7599 MB / 396.7 MB, free: 15.87 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003633/0.02511, allocations: 4.405 MB / 401.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.0269, allocations: 2.495 MB / 403.6 MB, free: 8.906 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002005/0.02891, allocations: 2.46 MB / 406.1 MB, free: 6.441 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001925/0.03083, allocations: 2.011 MB / 408.1 MB, free: 4.426 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002863/0.03112, allocations: 272 kB / 408.4 MB, free: 4.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.03239, allocations: 1.139 MB / 409.5 MB, free: 3.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.0334, allocations: 1.788 MB / 411.3 MB, free: 1.227 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007464/0.03415, allocations: 1.071 MB / 412.4 MB, free: 156 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003715/0.03786, allocations: 4.239 MB / 416.6 MB, free: 11.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.03786, allocations: 0 / 416.6 MB, free: 11.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.03787, allocations: 0 / 416.6 MB, free: 11.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.038e-05/0.0379, allocations: 0 / 416.6 MB, free: 11.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.004861/0.04276, allocations: 4.638 MB / 421.2 MB, free: 7.199 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.04282, allocations: 8.031 kB / 421.3 MB, free: 7.191 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008297/0.05112, allocations: 2.877 MB / 424.1 MB, free: 4.309 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.05348, allocations: 2.028 MB / 426.2 MB, free: 2.223 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.05358, allocations: 189.3 kB / 426.3 MB, free: 2.035 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003389/0.05392, allocations: 280.4 kB / 426.6 MB, free: 1.762 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006011/0.05993, allocations: 5.328 MB / 431.9 MB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.295e-05/0.06, allocations: 43.64 kB / 432 MB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.0602, allocations: 123.9 kB / 432.1 MB, free: 11.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001403/0.06161, allocations: 1.68 MB / 433.8 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005032/0.06664, allocations: 2.728 MB / 436.5 MB, free: 6.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1782/0.2449, allocations: 37.6 MB / 474.1 MB, free: 60.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003488/0.2483, allocations: 1.73 MB / 475.8 MB, free: 60.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005589/0.2489, allocations: 0.4918 MB / 476.3 MB, free: 60.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004016/0.2529, allocations: 3.891 MB / 480.2 MB, free: 59.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.2529, allocations: 48.8 kB / 480.3 MB, free: 59.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 3.236e-06/0.253, allocations: 0 / 480.3 MB, free: 59.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.0203/0.2733, allocations: 11.76 MB / 492 MB, free: 55.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.2733, allocations: 199.9 kB / 492.2 MB, free: 55.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/0.2761, allocations: 3.391 MB / 495.6 MB, free: 53.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.35e-05/0.2762, allocations: 54.75 kB / 495.7 MB, free: 53.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.2775, allocations: 3.131 MB / 498.8 MB, free: 51.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003902/0.2779, allocations: 0.709 MB / 499.5 MB, free: 50.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.279, allocations: 1.295 MB / 0.4891 GB, free: 50.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.731e-05/0.279, allocations: 478.1 kB / 0.4895 GB, free: 49.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.2802, allocations: 0.6689 MB / 0.4902 GB, free: 49.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002511/0.2827, allocations: 6.174 MB / 0.4962 GB, free: 42.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00454/0.2872, allocations: 7.501 MB / 0.5035 GB, free: 34.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.577e-05/0.2873, allocations: 37.47 kB / 0.5036 GB, free: 34.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.00724/0.2945, allocations: 5.656 MB / 0.5091 GB, free: 32.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.513e-05/0.2946, allocations: 63.31 kB / 0.5092 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.2947, allocations: 130 kB / 0.5093 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/0.2967, allocations: 0.9087 MB / 0.5102 GB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/0.2988, allocations: 1.353 MB / 0.5115 GB, free: 31.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003752/0.3026, allocations: 3.904 MB / 0.5153 GB, free: 29.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/0.3048, allocations: 359.7 kB / 0.5156 GB, free: 29.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.305, allocations: 368.2 kB / 0.516 GB, free: 29.02 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.0008976/0.3059, allocations: 0.6455 MB / 0.5166 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.3062, allocations: 359 kB / 0.517 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.3089, allocations: 1.627 MB / 0.5186 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.309, allocations: 18.89 kB / 0.5186 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.309, allocations: 11.25 kB / 0.5186 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.309, allocations: 8.156 kB / 0.5186 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007014/0.316, allocations: 4.806 MB / 0.5233 GB, free: 23.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.316, allocations: 4 kB / 0.5233 GB, free: 23.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005488/0.3166, allocations: 244.2 kB / 0.5235 GB, free: 23.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.3184, allocations: 0.7041 MB / 0.5242 GB, free: 23.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.801e-05/0.3185, allocations: 37.89 kB / 0.5242 GB, free: 23.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003017/0.3215, allocations: 3.451 MB / 0.5276 GB, free: 19.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3215, allocations: 1.641 kB / 0.5276 GB, free: 19.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.3246, allocations: 2.641 MB / 0.5302 GB, free: 17.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.325, allocations: 295.6 kB / 0.5305 GB, free: 17.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.3252, allocations: 28 kB / 0.5305 GB, free: 17.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006207/0.3258, allocations: 109.7 kB / 0.5306 GB, free: 17.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.326, allocations: 109 kB / 0.5307 GB, free: 17.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/0.326, allocations: 46 kB / 0.5308 GB, free: 16.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001351/0.3274, allocations: 1.432 MB / 0.5322 GB, free: 15.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3274, allocations: 0 / 0.5322 GB, free: 15.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003143/0.3305, allocations: 0.9569 MB / 0.5331 GB, free: 14.86 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.0003104/0.3308, allocations: 166.5 kB / 0.5333 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003172/0.334, allocations: 3.029 MB / 0.5362 GB, free: 12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.334, allocations: 0 / 0.5362 GB, free: 12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006412/0.3347, allocations: 0.8034 MB / 0.537 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.3357, allocations: 345.5 kB / 0.5373 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006436/0.3422, allocations: 6.591 MB / 0.5438 GB, free: 4.859 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/0.3429, allocations: 1.097 MB / 0.5448 GB, free: 4.062 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001858/0.3447, allocations: 1.556 MB / 0.5464 GB, free: 2.789 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.3451, allocations: 208.5 kB / 0.5466 GB, free: 2.586 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3451, allocations: 4 kB / 0.5466 GB, free: 2.582 MB / 410.7 MB Notification: Performance of Templates: time 0.04592/0.391, allocations: 29.86 MB / 0.5757 GB, free: 5.285 MB / 442.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.19502272689715]