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.001483/0.001483, allocations: 71.77 kB / 22.45 MB, free: 2.09 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.001757/0.001757, allocations: 166.9 kB / 25.75 MB, free: 8.949 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.9329/0.9329, allocations: 158.6 MB / 187.5 MB, free: 2.949 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.753e-06/1.753e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.763e-05/2.939e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01581/0.01584, allocations: 14.57 MB / 265.7 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.02704, allocations: 4.734 MB / 270.4 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003349/0.03039, allocations: 111.5 kB / 270.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005939/0.03633, allocations: 3.395 MB / 273.9 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007049/0.04338, allocations: 2.741 MB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.04582, allocations: 1.123 MB / 277.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009964/0.05578, allocations: 7.346 MB / 285.1 MB, free: 5.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006159/0.06194, allocations: 4.251 MB / 289.4 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008052/0.06999, allocations: 3.426 MB / 292.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006157/0.07615, allocations: 3.644 MB / 296.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0017/0.07785, allocations: 496 kB / 296.9 MB, free: 9.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.08131, allocations: 1.482 MB / 298.4 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003673/0.08498, allocations: 3.109 MB / 301.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003919/0.0889, allocations: 1.885 MB / 303.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008058/0.09696, allocations: 6.963 MB / 310.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.09697, allocations: 0 / 310.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.09697, allocations: 0 / 310.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002303/0.0972, allocations: 3.984 kB / 310.4 MB, free: 12.28 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.0111/0.1083, allocations: 7.975 MB / 318.3 MB, free: 4.219 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1083, allocations: 11.98 kB / 318.4 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009755/0.1181, allocations: 4.693 MB / 323.1 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006057/0.1242, allocations: 3.711 MB / 326.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.1244, allocations: 320.4 kB / 327.1 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009279/0.1253, allocations: 432.2 kB / 327.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.1397, allocations: 9 MB / 336.5 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000135/0.1398, allocations: 59.55 kB / 336.6 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004603/0.1403, allocations: 203.8 kB / 336.8 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003021/0.1433, allocations: 3.216 MB / 340 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.1552, allocations: 5.211 MB / 345.2 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1707/0.3259, allocations: 60.07 MB / 405.3 MB, free: 47.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007027/0.3329, allocations: 3.044 MB / 408.3 MB, free: 46.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/0.3348, allocations: 1.173 MB / 409.5 MB, free: 45.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.3453, allocations: 8.284 MB / 417.8 MB, free: 37.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.3453, allocations: 63.39 kB / 417.8 MB, free: 37.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=289): time 8.025e-06/0.3453, allocations: 2.781 kB / 417.8 MB, free: 37.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=339): time 0.06041/0.4058, allocations: 27.25 MB / 445.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.549e-05/0.4058, allocations: 221.9 kB / 445.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005648/0.4115, allocations: 4.742 MB / 450 MB, free: 5.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006446/0.4121, allocations: 73.7 kB / 450.1 MB, free: 5.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/0.4143, allocations: 4.741 MB / 454.8 MB, free: 1.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/0.4158, allocations: 1.346 MB / 456.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002653/0.4184, allocations: 1.931 MB / 458.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4186, allocations: 480.8 kB / 458.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003452/0.422, allocations: 1.665 MB / 460.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007919/0.4299, allocations: 9.091 MB / 469.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0143/0.4442, allocations: 11.73 MB / 481.1 MB, free: 204 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002026/0.4444, allocations: 51.94 kB / 481.1 MB, free: 152 kB / 362.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02992/0.4744, allocations: 12.33 MB / 493.5 MB, free: 3.777 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.4745, allocations: 76.19 kB / 493.5 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002119/0.4747, allocations: 180 kB / 493.7 MB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1559/0.6306, allocations: 4.864 MB / 498.6 MB, free: 122.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005139/0.6357, allocations: 2.106 MB / 0.4889 GB, free: 122.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/0.6487, allocations: 9.344 MB / 0.4981 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006039/0.6548, allocations: 0.6258 MB / 0.4987 GB, free: 118.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001558/0.6563, allocations: 0.5096 MB / 0.4992 GB, free: 118.5 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.003036/0.6594, allocations: 0.8679 MB / 0.5 GB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/0.6607, allocations: 0.5585 MB / 0.5006 GB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01538/0.6761, allocations: 7.249 MB / 0.5076 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.052e-05/0.6762, allocations: 56.12 kB / 0.5077 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/0.6762, allocations: 14.5 kB / 0.5077 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-05/0.6763, allocations: 19.08 kB / 0.5077 GB, free: 118 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/0.7032, allocations: 15.8 MB / 0.5232 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-05/0.7032, allocations: 4 kB / 0.5232 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/0.7052, allocations: 0.5733 MB / 0.5237 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01131/0.7165, allocations: 4.265 MB / 0.5279 GB, free: 98.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006331/0.7172, allocations: 56 kB / 0.5279 GB, free: 98.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009982/0.7272, allocations: 8.177 MB / 0.5359 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7272, allocations: 4 kB / 0.5359 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/0.7435, allocations: 8.348 MB / 0.5441 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/0.7457, allocations: 1.102 MB / 0.5452 GB, free: 80.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008528/0.7465, allocations: 55.83 kB / 0.5452 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001866/0.7484, allocations: 327.4 kB / 0.5455 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005559/0.749, allocations: 201.5 kB / 0.5457 GB, free: 80.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/0.7492, allocations: 86.94 kB / 0.5458 GB, free: 80.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002465/0.7516, allocations: 2.045 MB / 0.5478 GB, free: 77.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7516, allocations: 0 / 0.5478 GB, free: 77.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00629/0.7579, allocations: 1.899 MB / 0.5497 GB, free: 76.1 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.0006084/0.7585, allocations: 232.5 kB / 0.5499 GB, free: 75.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007691/0.7662, allocations: 5.879 MB / 0.5556 GB, free: 69.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.7662, allocations: 0 / 0.5556 GB, free: 69.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002481/0.7687, allocations: 1.96 MB / 0.5575 GB, free: 67.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.7713, allocations: 0.5427 MB / 0.5581 GB, free: 67.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/0.7873, allocations: 12.55 MB / 0.5703 GB, free: 54.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.7891, allocations: 1.88 MB / 0.5721 GB, free: 52.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004026/0.7931, allocations: 2.374 MB / 0.5745 GB, free: 50.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/0.7942, allocations: 340.4 kB / 0.5748 GB, free: 50.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.575e-06/0.7942, allocations: 0 / 0.5748 GB, free: 50.14 MB / 378.7 MB Notification: Performance of Templates: time 0.2025/0.9967, allocations: 75.52 MB / 0.6485 GB, free: 109.7 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 -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.796464325860143]