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.000998/0.000998, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001238/0.001238, allocations: 166.9 kB / 25.33 MB, free: 8.586 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.9714/0.9714, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.793e-06/1.793e-06, allocations: 0 / 251 MB, free: 7.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.079e-05, allocations: 2.312 kB / 251 MB, free: 7.609 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01136/0.01138, allocations: 14.62 MB / 265.7 MB, free: 8.922 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008385/0.01977, allocations: 4.749 MB / 270.4 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.02149, allocations: 111.4 kB / 270.5 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003658/0.02515, allocations: 3.403 MB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0044/0.02955, allocations: 2.745 MB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001542/0.03109, allocations: 1.115 MB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006965/0.03806, allocations: 7.352 MB / 285.1 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004329/0.04239, allocations: 4.258 MB / 289.4 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.04572, allocations: 3.41 MB / 292.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/0.04845, allocations: 3.648 MB / 296.4 MB, free: 9.992 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004654/0.04891, allocations: 500 kB / 296.9 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.05059, allocations: 1.475 MB / 298.4 MB, free: 8.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.05239, allocations: 3.109 MB / 301.5 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.05366, allocations: 1.885 MB / 303.4 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004811/0.05847, allocations: 6.974 MB / 310.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.05847, allocations: 0 / 310.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.05847, allocations: 0 / 310.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.05851, allocations: 0 / 310.4 MB, free: 12.02 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.007487/0.066, allocations: 7.968 MB / 318.3 MB, free: 3.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.06604, allocations: 15.98 kB / 318.4 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008413/0.07445, allocations: 4.697 MB / 323.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004213/0.07867, allocations: 3.715 MB / 326.8 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.07881, allocations: 316.4 kB / 327.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/0.07933, allocations: 428.2 kB / 327.5 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009459/0.08879, allocations: 9 MB / 336.5 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.758e-05/0.08887, allocations: 59.56 kB / 336.6 MB, free: 424 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003601/0.08923, allocations: 207.8 kB / 336.8 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002774/0.09201, allocations: 3.212 MB / 340 MB, free: 12.99 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009651/0.1017, allocations: 5.211 MB / 345.2 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.172/0.2736, allocations: 60.07 MB / 405.3 MB, free: 42.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005518/0.2792, allocations: 3.046 MB / 408.3 MB, free: 41.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.2805, allocations: 1.176 MB / 409.5 MB, free: 41.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009045/0.2896, allocations: 8.279 MB / 417.8 MB, free: 33.99 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.2896, allocations: 59.39 kB / 417.8 MB, free: 33.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=289): time 4.399e-06/0.2896, allocations: 0 / 417.8 MB, free: 33.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=339): time 0.0511/0.3407, allocations: 27.26 MB / 445.1 MB, free: 7.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3408, allocations: 210 kB / 445.3 MB, free: 6.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/0.3449, allocations: 4.755 MB / 450 MB, free: 2.383 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.3451, allocations: 69.7 kB / 450.1 MB, free: 2.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001979/0.3471, allocations: 4.737 MB / 454.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00108/0.3482, allocations: 1.348 MB / 456.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002232/0.3504, allocations: 1.931 MB / 458.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3505, allocations: 480.7 kB / 458.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/0.3532, allocations: 1.661 MB / 460.3 MB, free: 8.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006289/0.3595, allocations: 9.093 MB / 469.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.37, allocations: 11.74 MB / 481.1 MB, free: 13.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-05/0.3701, allocations: 55.75 kB / 481.1 MB, free: 13.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02269/0.3928, allocations: 12.32 MB / 493.5 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.254e-05/0.3929, allocations: 80 kB / 493.5 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/0.393, allocations: 172.9 kB / 493.7 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.154/0.547, allocations: 4.854 MB / 498.6 MB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004881/0.5519, allocations: 2.111 MB / 0.4889 GB, free: 117.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.5633, allocations: 9.353 MB / 0.4981 GB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004734/0.5681, allocations: 0.6294 MB / 0.4987 GB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006036/0.5687, allocations: 0.5099 MB / 0.4992 GB, free: 113.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1094): * Single equations (assignments): 1086 * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001885/0.5706, allocations: 0.8559 MB / 0.5 GB, free: 113.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006816/0.5712, allocations: 0.5601 MB / 0.5006 GB, free: 113.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01373/0.585, allocations: 7.255 MB / 0.5077 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.736e-05/0.585, allocations: 67.55 kB / 0.5077 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.585, allocations: 11.5 kB / 0.5077 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.5851, allocations: 15.94 kB / 0.5077 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02242/0.6075, allocations: 15.79 MB / 0.5232 GB, free: 97.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.6075, allocations: 4 kB / 0.5232 GB, free: 97.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.6089, allocations: 0.5819 MB / 0.5237 GB, free: 96.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01045/0.6194, allocations: 4.272 MB / 0.5279 GB, free: 92.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/0.6196, allocations: 52 kB / 0.528 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008953/0.6286, allocations: 8.163 MB / 0.5359 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6286, allocations: 11.94 kB / 0.5359 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/0.644, allocations: 8.344 MB / 0.5441 GB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002561/0.6465, allocations: 1.104 MB / 0.5452 GB, free: 74.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/0.647, allocations: 59.94 kB / 0.5452 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.6487, allocations: 315.5 kB / 0.5455 GB, free: 74.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005642/0.6493, allocations: 201.5 kB / 0.5457 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/0.6495, allocations: 90.31 kB / 0.5458 GB, free: 73.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002717/0.6522, allocations: 2.042 MB / 0.5478 GB, free: 71.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6522, allocations: 0 / 0.5478 GB, free: 71.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006666/0.6589, allocations: 1.902 MB / 0.5496 GB, free: 70.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005485/0.6594, allocations: 228.9 kB / 0.5499 GB, free: 69.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007416/0.6668, allocations: 5.871 MB / 0.5556 GB, free: 63.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.6668, allocations: 3.391 kB / 0.5556 GB, free: 63.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.6689, allocations: 1.971 MB / 0.5575 GB, free: 61.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.6707, allocations: 0.5491 MB / 0.5581 GB, free: 61.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.6849, allocations: 12.55 MB / 0.5703 GB, free: 48.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.6861, allocations: 1.88 MB / 0.5722 GB, free: 46.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003155/0.6893, allocations: 2.374 MB / 0.5745 GB, free: 44.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009082/0.6902, allocations: 340.4 kB / 0.5748 GB, free: 44.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.964e-06/0.6902, allocations: 0 / 0.5748 GB, free: 44.11 MB / 378.7 MB Notification: Performance of Templates: time 0.198/0.8882, allocations: 75.52 MB / 0.6486 GB, free: 120 MB / 394.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 -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: 5.004403844010085]