Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001851/0.001851, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002005/0.002005, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/2.965e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02242/0.02245, allocations: 15.74 MB / 283.1 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.03676, allocations: 5.881 MB / 288.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00355/0.04031, allocations: 171.1 kB / 289.1 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1442/0.1845, allocations: 6.504 MB / 295.6 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007688/0.1922, allocations: 3.034 MB / 298.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.1975, allocations: 2.502 MB / 301.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.2107, allocations: 10.78 MB / 311.9 MB, free: 9.289 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009405/0.2201, allocations: 7.439 MB / 319.4 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01149/0.2316, allocations: 4.941 MB / 324.3 MB, free: 13.97 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009424/0.241, allocations: 4.677 MB / 329 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003055/0.2441, allocations: 0.7422 MB / 329.7 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005936/0.25, allocations: 1.902 MB / 331.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006506/0.2565, allocations: 4.109 MB / 335.7 MB, free: 3.117 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007948/0.2645, allocations: 2.594 MB / 338.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02176/0.2862, allocations: 13.64 MB / 352 MB, free: 3.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.2863, allocations: 0 / 352 MB, free: 3.469 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2863, allocations: 0 / 352 MB, free: 3.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0005434/0.2868, allocations: 0 / 352 MB, free: 3.469 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03047/0.3173, allocations: 9.273 MB / 361.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3173, allocations: 8.922 kB / 361.3 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0497/0.367, allocations: 5.772 MB / 367 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01784/0.3849, allocations: 6.313 MB / 373.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005255/0.3854, allocations: 430.9 kB / 373.8 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002655/0.388, allocations: 0.5913 MB / 374.4 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03923/0.4273, allocations: 17.44 MB / 391.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003036/0.4276, allocations: 83.59 kB / 391.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001342/0.4289, allocations: 265.6 kB / 392.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005201/0.4341, allocations: 2.67 MB / 394.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03461/0.4687, allocations: 14.91 MB / 409.7 MB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3052/0.7739, allocations: 60.6 MB / 470.3 MB, free: 79.89 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02432/0.7982, allocations: 8.383 MB / 478.7 MB, free: 78.12 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004997/0.8032, allocations: 4.836 MB / 483.5 MB, free: 75.89 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009098/0.8041, allocations: 451.1 kB / 484 MB, free: 75.75 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/0.8041, allocations: 67.09 kB / 484.1 MB, free: 75.69 MB / 378.8 MB Notification: Performance of pre-optimization done (n=301): time 5.4e-06/0.8042, allocations: 1.969 kB / 484.1 MB, free: 75.69 MB / 378.8 MB Notification: Performance of matching and sorting (n=400): time 0.3852/1.189, allocations: 104.7 MB / 0.5749 GB, free: 5.996 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002834/1.19, allocations: 381.6 kB / 0.5753 GB, free: 5.543 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1575/1.347, allocations: 6.357 MB / 0.5815 GB, free: 143.7 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001146/1.348, allocations: 86.14 kB / 0.5816 GB, free: 143.7 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004076/1.352, allocations: 4.865 MB / 0.5863 GB, free: 142 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002161/1.355, allocations: 1.507 MB / 0.5878 GB, free: 140.8 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003857/1.358, allocations: 1.967 MB / 0.5897 GB, free: 139.9 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.891e-05/1.359, allocations: 303.2 kB / 0.59 GB, free: 139.6 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009368/1.368, allocations: 6.631 MB / 0.5965 GB, free: 137.1 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009636/1.378, allocations: 11.74 MB / 0.6079 GB, free: 128 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01827/1.396, allocations: 19.13 MB / 0.6266 GB, free: 115.3 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002364/1.396, allocations: 44 kB / 0.6267 GB, free: 115.2 MB / 410.8 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.04958/1.446, allocations: 27.29 MB / 0.6533 GB, free: 90.18 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/1.446, allocations: 87.98 kB / 0.6534 GB, free: 90.09 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002484/1.446, allocations: 164 kB / 0.6536 GB, free: 89.93 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03254/1.479, allocations: 12.04 MB / 0.6653 GB, free: 77.87 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007268/1.486, allocations: 2.156 MB / 0.6674 GB, free: 75.71 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05619/1.542, allocations: 47.46 MB / 0.7138 GB, free: 27.95 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01059/1.553, allocations: 0.9595 MB / 0.7147 GB, free: 26.99 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001968/1.555, allocations: 0.5195 MB / 0.7152 GB, free: 26.47 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 762 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1079): * Single equations (assignments): 1072 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,74,68.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.006358/1.561, allocations: 3.433 MB / 0.7186 GB, free: 23.02 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002369/1.563, allocations: 0.6799 MB / 0.7192 GB, free: 22.34 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1902/1.753, allocations: 20.62 MB / 0.7394 GB, free: 129.3 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.239e-05/1.753, allocations: 50.61 kB / 0.7394 GB, free: 129.3 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.46e-05/1.754, allocations: 18 kB / 0.7394 GB, free: 129.3 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.099e-05/1.754, allocations: 20.31 kB / 0.7395 GB, free: 129.3 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05798/1.812, allocations: 35.77 MB / 0.7744 GB, free: 106.7 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.101e-05/1.812, allocations: 11.94 kB / 0.7744 GB, free: 106.7 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003113/1.815, allocations: 0.6286 MB / 0.775 GB, free: 106.1 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03005/1.845, allocations: 11.51 MB / 0.7863 GB, free: 94.7 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009715/1.846, allocations: 86.12 kB / 0.7863 GB, free: 94.62 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05042/1.896, allocations: 45.17 MB / 0.8304 GB, free: 49.44 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.896, allocations: 8 kB / 0.8305 GB, free: 49.43 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04474/1.941, allocations: 29.4 MB / 0.8592 GB, free: 20.16 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002386/1.943, allocations: 0.6194 MB / 0.8598 GB, free: 19.86 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001786/1.945, allocations: 80.05 kB / 0.8599 GB, free: 19.79 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004789/1.95, allocations: 0.6473 MB / 0.8605 GB, free: 19.14 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/1.951, allocations: 302.4 kB / 0.8608 GB, free: 18.84 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004175/1.952, allocations: 103.4 kB / 0.8609 GB, free: 18.74 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.004511/1.956, allocations: 3.873 MB / 0.8647 GB, free: 14.89 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/1.956, allocations: 0 / 0.8647 GB, free: 14.89 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.1292/2.085, allocations: 2.78 MB / 0.8674 GB, free: 125.4 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute1.phi,revolute1.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): 247 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,66,63.3%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,37)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/2.087, allocations: 316.8 kB / 0.8677 GB, free: 125.3 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0227/2.11, allocations: 15.57 MB / 0.8829 GB, free: 123.2 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.367e-05/2.11, allocations: 3.594 kB / 0.8829 GB, free: 123.2 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01025/2.12, allocations: 6.945 MB / 0.8897 GB, free: 120.4 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007669/2.128, allocations: 0.8656 MB / 0.8905 GB, free: 120 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/2.156, allocations: 20.88 MB / 0.9109 GB, free: 107.4 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005027/2.161, allocations: 4.819 MB / 0.9156 GB, free: 103.8 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.005934/2.167, allocations: 2.98 MB / 0.9185 GB, free: 102 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001726/2.169, allocations: 374.4 kB / 0.9189 GB, free: 101.6 MB / 410.8 MB Notification: Performance of SimCode: time 1.734e-06/2.169, allocations: 0 / 0.9189 GB, free: 101.6 MB / 410.8 MB Notification: Performance of Templates: time 0.2613/2.43, allocations: 123.5 MB / 1.04 GB, free: 112.9 MB / 410.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.725029172026552]