Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008907/0.0008907, allocations: 80.8 kB / 22.28 MB, free: 2.211 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.0009623/0.0009623, allocations: 164.9 kB / 25.7 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8892/0.8892, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.011e-05, allocations: 6.312 kB / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01571/0.01573, allocations: 14.21 MB / 265.8 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009926/0.02565, allocations: 4.904 MB / 270.7 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.02719, allocations: 107.5 kB / 270.8 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.03138, allocations: 3.344 MB / 274.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.03587, allocations: 2.737 MB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.03749, allocations: 1.111 MB / 278 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006751/0.04424, allocations: 7.339 MB / 285.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003899/0.04814, allocations: 4.134 MB / 289.5 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004138/0.05228, allocations: 4.011 MB / 293.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003567/0.05584, allocations: 3.418 MB / 296.9 MB, free: 9.688 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000622/0.05646, allocations: 492 kB / 297.4 MB, free: 9.207 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.05845, allocations: 1.521 MB / 298.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0022/0.06065, allocations: 3.093 MB / 302 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.06243, allocations: 1.873 MB / 303.8 MB, free: 2.703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006683/0.06911, allocations: 6.943 MB / 310.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.06912, allocations: 4 kB / 310.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.06912, allocations: 0 / 310.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.324e-05/0.0692, allocations: 0 / 310.8 MB, free: 11.73 MB / 298.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.007987/0.07719, allocations: 6.605 MB / 317.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.07723, allocations: 11.98 kB / 317.4 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004772/0.082, allocations: 1.819 MB / 319.2 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.08543, allocations: 2.858 MB / 322.1 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001714/0.0856, allocations: 320.4 kB / 322.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005423/0.08615, allocations: 428.2 kB / 322.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008026/0.09417, allocations: 7.321 MB / 330.1 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.09429, allocations: 67.44 kB / 330.2 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.0947, allocations: 203.8 kB / 330.4 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002557/0.09726, allocations: 2.857 MB / 333.3 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009127/0.1064, allocations: 3.925 MB / 337.2 MB, free: 192 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1761/0.2825, allocations: 43.4 MB / 380.6 MB, free: 59.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005401/0.2879, allocations: 2.575 MB / 383.2 MB, free: 59.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.289, allocations: 0.7125 MB / 383.9 MB, free: 59.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009992/0.299, allocations: 6.615 MB / 390.5 MB, free: 58.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/0.299, allocations: 60.97 kB / 390.5 MB, free: 58.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=269): time 7.203e-06/0.299, allocations: 0 / 390.5 MB, free: 58.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=300): time 0.03343/0.3325, allocations: 9.337 MB / 399.9 MB, free: 52.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/0.3325, allocations: 208.9 kB / 400.1 MB, free: 52.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00609/0.3386, allocations: 4.376 MB / 404.5 MB, free: 48.37 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005485/0.3392, allocations: 65.7 kB / 404.5 MB, free: 48.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/0.3412, allocations: 4.343 MB / 408.9 MB, free: 44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001265/0.3424, allocations: 1.163 MB / 410 MB, free: 42.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002093/0.3445, allocations: 1.669 MB / 411.7 MB, free: 41.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.308e-05/0.3445, allocations: 305.1 kB / 412 MB, free: 40.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/0.3475, allocations: 1.252 MB / 413.3 MB, free: 39.58 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004395/0.3519, allocations: 6.271 MB / 419.5 MB, free: 30.86 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007552/0.3594, allocations: 8.214 MB / 427.7 MB, free: 20.44 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/0.3595, allocations: 52 kB / 427.8 MB, free: 20.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01097/0.3705, allocations: 6.439 MB / 434.2 MB, free: 13.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.836e-05/0.3706, allocations: 80 kB / 434.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.3707, allocations: 184 kB / 434.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001901/0.3726, allocations: 0.8235 MB / 435.3 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.3768, allocations: 2.078 MB / 437.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003791/0.3806, allocations: 4.364 MB / 441.7 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004819/0.3854, allocations: 371.5 kB / 442.1 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000979/0.3864, allocations: 448 kB / 442.5 MB, free: 5.383 MB / 330.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.002386/0.3888, allocations: 0.8288 MB / 443.4 MB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008343/0.3896, allocations: 323.7 kB / 443.7 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003104/0.3927, allocations: 2.113 MB / 445.8 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-05/0.3928, allocations: 48 kB / 445.9 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.3928, allocations: 4 kB / 445.9 MB, free: 2.043 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.3928, allocations: 15.95 kB / 445.9 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.4072, allocations: 6.351 MB / 452.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/0.4072, allocations: 15.78 kB / 452.2 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/0.4091, allocations: 0.6692 MB / 452.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.4107, allocations: 0.5717 MB / 453.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002897/0.411, allocations: 51.94 kB / 453.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/0.4143, allocations: 3.432 MB / 457 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4143, allocations: 11.94 kB / 457 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004713/0.419, allocations: 3.092 MB / 460.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/0.4207, allocations: 0.7113 MB / 460.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006907/0.4214, allocations: 48 kB / 460.8 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.4225, allocations: 60.02 kB / 460.9 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003207/0.4228, allocations: 177.4 kB / 461.1 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.423, allocations: 63.98 kB / 461.1 MB, free: 2.293 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001921/0.4249, allocations: 1.603 MB / 462.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4249, allocations: 0 / 462.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005302/0.4302, allocations: 1.598 MB / 464.3 MB, free: 15.09 MB / 362.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.0004979/0.4307, allocations: 207.8 kB / 464.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005359/0.4361, allocations: 3.888 MB / 468.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002339/0.4363, allocations: 123.8 kB / 468.5 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001302/0.4376, allocations: 0.9636 MB / 469.5 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003263/0.4409, allocations: 0.8711 MB / 470.4 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01774/0.4586, allocations: 11.36 MB / 481.7 MB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002094/0.4607, allocations: 1.823 MB / 483.5 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002403/0.4631, allocations: 0.7081 MB / 484.3 MB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/0.4645, allocations: 0.7472 MB / 485 MB, free: 10.2 MB / 378.7 MB Notification: Performance of SimCode: time 4.138e-06/0.4645, allocations: 0 / 485 MB, free: 10.2 MB / 378.7 MB Notification: Performance of Templates: time 0.1837/0.6482, allocations: 51.37 MB / 0.5238 GB, free: 98.46 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.2272874638438225]