Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001361/0.001361, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.00101/0.00101, allocations: 169.9 kB / 24.91 MB, free: 9.199 MB / 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.9157/0.9157, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.781e-05/4.012e-05, allocations: 2.312 kB / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01698/0.01702, allocations: 14.12 MB / 287.6 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1366/0.1536, allocations: 4.9 MB / 292.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.1552, allocations: 109.4 kB / 292.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003422/0.1586, allocations: 3.33 MB / 295.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.1623, allocations: 2.689 MB / 298.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1638, allocations: 1.109 MB / 299.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006253/0.1701, allocations: 7.787 MB / 307.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003267/0.1733, allocations: 4.118 MB / 311.6 MB, free: 7.938 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003836/0.1772, allocations: 4.346 MB / 316 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00279/0.1799, allocations: 3.396 MB / 319.4 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005156/0.1805, allocations: 492 kB / 319.9 MB, free: 1.012 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.1821, allocations: 1.503 MB / 321.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002075/0.1842, allocations: 3.05 MB / 324.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.1859, allocations: 1.843 MB / 326.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005694/0.1916, allocations: 6.862 MB / 333.1 MB, free: 4.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1916, allocations: 0 / 333.1 MB, free: 4.289 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1916, allocations: 0 / 333.1 MB, free: 4.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.323e-05/0.1917, allocations: 0 / 333.1 MB, free: 4.289 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.007824/0.1995, allocations: 6.552 MB / 339.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.1995, allocations: 8.031 kB / 339.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006129/0.2056, allocations: 1.824 MB / 341.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/0.2094, allocations: 2.812 MB / 344.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.2096, allocations: 319.1 kB / 344.6 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004898/0.2101, allocations: 430.1 kB / 345.1 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006847/0.2169, allocations: 7.324 MB / 352.4 MB, free: 1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-05/0.217, allocations: 67.38 kB / 352.4 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.2174, allocations: 207.8 kB / 352.6 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/0.2195, allocations: 2.853 MB / 355.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00586/0.2254, allocations: 3.928 MB / 359.4 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02845/0.2539, allocations: 43.37 MB / 402.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004842/0.2587, allocations: 2.581 MB / 405.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.2595, allocations: 0.705 MB / 406.1 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007495/0.267, allocations: 6.6 MB / 412.7 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.901e-05/0.267, allocations: 68.5 kB / 412.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 3.617e-06/0.267, allocations: 0 / 412.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02012/0.2871, allocations: 9.315 MB / 422.1 MB, free: 9.727 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.2872, allocations: 213.9 kB / 422.3 MB, free: 9.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003229/0.2904, allocations: 4.334 MB / 426.6 MB, free: 5.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.2906, allocations: 65.7 kB / 426.7 MB, free: 5.059 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.2925, allocations: 4.34 MB / 431 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1037/0.3962, allocations: 1.161 MB / 432.2 MB, free: 115.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00187/0.3981, allocations: 1.667 MB / 433.8 MB, free: 115.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.38e-05/0.3981, allocations: 305.2 kB / 434.1 MB, free: 115.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.4001, allocations: 1.254 MB / 435.4 MB, free: 115.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00342/0.4035, allocations: 6.264 MB / 441.7 MB, free: 108.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005898/0.4094, allocations: 8.213 MB / 449.9 MB, free: 101.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.823e-05/0.4095, allocations: 55.31 kB / 449.9 MB, free: 101.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.007654/0.4172, allocations: 6.437 MB / 456.4 MB, free: 100.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.414e-05/0.4172, allocations: 79.59 kB / 456.4 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.4174, allocations: 184.1 kB / 456.6 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.4191, allocations: 0.8337 MB / 457.5 MB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003157/0.4222, allocations: 2.081 MB / 459.5 MB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003354/0.4256, allocations: 4.36 MB / 463.9 MB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/0.4283, allocations: 362.5 kB / 464.2 MB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003785/0.4287, allocations: 453 kB / 464.7 MB, free: 96.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1107): * Single equations (assignments): 1099 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001494/0.4302, allocations: 0.8316 MB / 465.5 MB, free: 96.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003966/0.4306, allocations: 323.3 kB / 465.8 MB, free: 96.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002593/0.4332, allocations: 2.108 MB / 467.9 MB, free: 94.83 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.002e-05/0.4332, allocations: 55.36 kB / 468 MB, free: 94.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4332, allocations: 8 kB / 468 MB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.4333, allocations: 9.75 kB / 468 MB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007295/0.4406, allocations: 6.333 MB / 474.3 MB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4406, allocations: 8 kB / 474.4 MB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.4418, allocations: 0.667 MB / 475 MB, free: 89.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/0.4433, allocations: 0.5647 MB / 475.6 MB, free: 88.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.4434, allocations: 49.08 kB / 475.6 MB, free: 88.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002416/0.4458, allocations: 3.438 MB / 479.1 MB, free: 85.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4458, allocations: 11.94 kB / 479.1 MB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.449, allocations: 3.086 MB / 482.2 MB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.4493, allocations: 437.5 kB / 482.6 MB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003224/0.4496, allocations: 48 kB / 482.6 MB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.4505, allocations: 52.64 kB / 482.7 MB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.4507, allocations: 177.5 kB / 482.9 MB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4508, allocations: 62.64 kB / 482.9 MB, free: 81.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009657/0.4518, allocations: 1.582 MB / 484.5 MB, free: 80.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4518, allocations: 0 / 484.5 MB, free: 80.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003646/0.4554, allocations: 1.562 MB / 486.1 MB, free: 78.76 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (j1.phi,j1.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 (236): * Single equations (assignments): 228 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003426/0.4558, allocations: 200 kB / 486.3 MB, free: 78.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.4594, allocations: 3.9 MB / 490.2 MB, free: 74.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001447/0.4595, allocations: 116.2 kB / 490.3 MB, free: 74.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008748/0.4604, allocations: 0.9653 MB / 491.2 MB, free: 73.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4622, allocations: 0.8699 MB / 492.1 MB, free: 72.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00932/0.4716, allocations: 11.34 MB / 0.4917 GB, free: 61.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4727, allocations: 1.815 MB / 0.4934 GB, free: 59.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001445/0.4741, allocations: 0.7101 MB / 0.4941 GB, free: 58.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.4752, allocations: 0.7355 MB / 0.4948 GB, free: 58.02 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4752, allocations: 0 / 0.4948 GB, free: 58.02 MB / 378.7 MB Notification: Performance of Templates: time 0.05577/0.531, allocations: 50.77 MB / 0.5444 GB, free: 7.602 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.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: 3.9076860770583153]