Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.0008001/0.0008001, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001125/0.001925, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006846/0.0006846, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009196/0.001604, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9632/0.9632, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09172/1.055, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.178e-05/2.375e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01241/0.01243, allocations: 17.14 MB / 261.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.02272, allocations: 6.283 MB / 268.1 MB, free: 6.707 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002663/0.02539, allocations: 167.1 kB / 268.3 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.03169, allocations: 6.323 MB / 274.6 MB, free: 204 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.126/0.1577, allocations: 2.986 MB / 277.6 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.1621, allocations: 2.334 MB / 279.9 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01245/0.1745, allocations: 10.09 MB / 290 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00818/0.1827, allocations: 6.74 MB / 296.8 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009579/0.1923, allocations: 6.342 MB / 303.1 MB, free: 10 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00538/0.1977, allocations: 4.557 MB / 307.7 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.1992, allocations: 0.7383 MB / 308.4 MB, free: 5.016 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003348/0.2025, allocations: 1.923 MB / 310.3 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00306/0.2056, allocations: 3.658 MB / 314 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003269/0.2089, allocations: 2.081 MB / 316.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008361/0.2172, allocations: 7.772 MB / 323.8 MB, free: 6.082 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.2172, allocations: 4 kB / 323.8 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2172, allocations: 0 / 323.8 MB, free: 6.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002748/0.2175, allocations: 0 / 323.8 MB, free: 6.078 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.01272/0.2302, allocations: 9.836 MB / 333.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2303, allocations: 12.02 kB / 333.7 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007341/0.2376, allocations: 2.112 MB / 335.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00577/0.2434, allocations: 4.142 MB / 339.9 MB, free: 6.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.2436, allocations: 433.5 kB / 340.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/0.2444, allocations: 0.5878 MB / 341 MB, free: 5.832 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/0.2557, allocations: 8.293 MB / 349.2 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001826/0.2559, allocations: 77.62 kB / 349.3 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005429/0.2565, allocations: 265.4 kB / 349.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001804/0.2583, allocations: 2.194 MB / 351.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00805/0.2663, allocations: 4.083 MB / 355.9 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04886/0.3152, allocations: 47.83 MB / 403.7 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00761/0.3228, allocations: 2.983 MB / 406.7 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.3242, allocations: 0.6715 MB / 407.3 MB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.3343, allocations: 6.729 MB / 414.1 MB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.823e-05/0.3344, allocations: 67.66 kB / 414.1 MB, free: 13.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=227): time 5.2e-06/0.3344, allocations: 0 / 414.1 MB, free: 13.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=276): time 0.1655/0.4999, allocations: 17.84 MB / 432 MB, free: 125.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.5, allocations: 161.8 kB / 432.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006275/0.5062, allocations: 5.059 MB / 437.2 MB, free: 125.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005339/0.5068, allocations: 67.3 kB / 437.3 MB, free: 125.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.5086, allocations: 4.642 MB / 441.9 MB, free: 122.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001032/0.5097, allocations: 1.093 MB / 443 MB, free: 121.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/0.5111, allocations: 1.72 MB / 444.7 MB, free: 121.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.34e-05/0.5111, allocations: 306.3 kB / 445 MB, free: 121 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.5128, allocations: 1.198 MB / 446.2 MB, free: 121 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002879/0.5157, allocations: 6.504 MB / 452.7 MB, free: 114 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005138/0.5208, allocations: 8.896 MB / 461.6 MB, free: 106.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.5209, allocations: 57.78 kB / 461.7 MB, free: 106.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.007978/0.5289, allocations: 6.739 MB / 468.4 MB, free: 105.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/0.529, allocations: 83.75 kB / 468.5 MB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001408/0.5291, allocations: 192.6 kB / 468.7 MB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003003/0.5321, allocations: 1.466 MB / 470.1 MB, free: 105.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003415/0.5355, allocations: 2.232 MB / 472.4 MB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005722/0.5413, allocations: 6.671 MB / 479 MB, free: 97.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/0.5458, allocations: 411.6 kB / 479.4 MB, free: 97.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/0.5463, allocations: 460 kB / 479.9 MB, free: 96.64 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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 (1111): * Single equations (assignments): 1104 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.001838/0.5481, allocations: 0.8379 MB / 480.7 MB, free: 95.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006945/0.5488, allocations: 371.6 kB / 481.1 MB, free: 95.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003226/0.552, allocations: 2.262 MB / 483.4 MB, free: 93.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.5521, allocations: 27.98 kB / 483.4 MB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.5521, allocations: 11.94 kB / 483.4 MB, free: 93.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.5521, allocations: 11.95 kB / 483.4 MB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009421/0.5615, allocations: 8.287 MB / 491.7 MB, free: 84.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-05/0.5615, allocations: 27.98 kB / 491.7 MB, free: 84.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008622/0.5624, allocations: 439.7 kB / 492.2 MB, free: 83.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009854/0.5634, allocations: 0.5548 MB / 492.7 MB, free: 83.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002632/0.566, allocations: 1.444 MB / 494.2 MB, free: 81.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.5661, allocations: 69.98 kB / 494.2 MB, free: 81.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004867/0.571, allocations: 6.522 MB / 0.489 GB, free: 75.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.571, allocations: 27.88 kB / 0.489 GB, free: 75.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003849/0.5749, allocations: 3.794 MB / 0.4927 GB, free: 70.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008239/0.5757, allocations: 67.98 kB / 0.4928 GB, free: 70.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.577, allocations: 87.97 kB / 0.4929 GB, free: 70.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/0.5773, allocations: 244.4 kB / 0.4931 GB, free: 70.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5774, allocations: 79.98 kB / 0.4932 GB, free: 70.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001607/0.579, allocations: 1.997 MB / 0.4951 GB, free: 68.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.579, allocations: 4.031 kB / 0.4952 GB, free: 68.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005029/0.5841, allocations: 1.886 MB / 0.497 GB, free: 66.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * 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 (219): * Single equations (assignments): 212 * 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,21,76.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005442/0.5846, allocations: 312.6 kB / 0.4973 GB, free: 66.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004548/0.5892, allocations: 4.432 MB / 0.5016 GB, free: 61.89 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002082/0.5894, allocations: 148 kB / 0.5018 GB, free: 61.74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002328/0.5917, allocations: 2.198 MB / 0.5039 GB, free: 59.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/0.5954, allocations: 5.679 MB / 0.5095 GB, free: 52.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.6133, allocations: 13.3 MB / 0.5224 GB, free: 39.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/0.615, allocations: 2.123 MB / 0.5245 GB, free: 37.16 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002101/0.6171, allocations: 0.7794 MB / 0.5253 GB, free: 36.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.6184, allocations: 0.8818 MB / 0.5261 GB, free: 35.49 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6184, allocations: 0 / 0.5261 GB, free: 35.49 MB / 394.7 MB Notification: Performance of Templates: time 0.1971/0.8155, allocations: 69.65 MB / 0.5942 GB, free: 96.86 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.177899745292962]