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.0009802/0.0009802, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.0009068/0.0009068, allocations: 155.1 kB / 25.6 MB, free: 8.922 MB / 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 0.9335/0.9335, allocations: 173.4 MB / 202.2 MB, free: 8.309 MB / 186.7 MB " [Timeout remaining time 179] 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.253e-06/1.253e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.613e-05/1.738e-05, allocations: 5.266 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01285/0.01287, allocations: 17.07 MB / 286.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.02315, allocations: 5.952 MB / 292.2 MB, free: 2.672 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001819/0.02497, allocations: 175.1 kB / 292.4 MB, free: 2.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005644/0.03061, allocations: 6.639 MB / 299 MB, free: 11.84 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003961/0.03457, allocations: 3.04 MB / 302.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002608/0.03718, allocations: 2.514 MB / 304.6 MB, free: 6.266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007972/0.04515, allocations: 10.8 MB / 315.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006512/0.05166, allocations: 7.467 MB / 322.9 MB, free: 3.883 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006675/0.05834, allocations: 6.894 MB / 329.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00416/0.0625, allocations: 4.786 MB / 334.5 MB, free: 8.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007958/0.06329, allocations: 0.7383 MB / 335.3 MB, free: 7.441 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002202/0.0655, allocations: 1.888 MB / 337.2 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00232/0.06782, allocations: 4.127 MB / 341.3 MB, free: 1.414 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1361/0.2039, allocations: 2.605 MB / 343.9 MB, free: 36.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.2145, allocations: 8.47 MB / 352.4 MB, free: 36.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.046e-06/0.2145, allocations: 0 / 352.4 MB, free: 36.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2145, allocations: 2.719 kB / 352.4 MB, free: 36.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004682/0.215, allocations: 0 / 352.4 MB, free: 36.27 MB / 314.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.01214/0.2271, allocations: 9.123 MB / 361.5 MB, free: 32.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2272, allocations: 10.16 kB / 361.5 MB, free: 32.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02018/0.2473, allocations: 4.673 MB / 366.2 MB, free: 32.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006197/0.2535, allocations: 4.437 MB / 370.6 MB, free: 31.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.2537, allocations: 432.5 kB / 371 MB, free: 31.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006954/0.2544, allocations: 0.5863 MB / 371.6 MB, free: 31.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/0.2656, allocations: 9.164 MB / 380.8 MB, free: 26.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001721/0.2658, allocations: 83.75 kB / 380.9 MB, free: 26.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004567/0.2662, allocations: 270.1 kB / 381.1 MB, free: 25.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001562/0.2678, allocations: 2.323 MB / 383.5 MB, free: 23.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007134/0.2749, allocations: 4.16 MB / 387.6 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04394/0.3189, allocations: 65.1 MB / 452.7 MB, free: 3.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007966/0.3268, allocations: 3.289 MB / 456 MB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009761/0.3278, allocations: 0.8452 MB / 456.9 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009132/0.3369, allocations: 7.33 MB / 464.2 MB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.337, allocations: 66.95 kB / 464.2 MB, free: 7.879 MB / 378.7 MB Notification: Performance of pre-optimization done (n=227): time 4.348e-06/0.337, allocations: 4 kB / 464.3 MB, free: 7.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=276): time 0.05626/0.3933, allocations: 21.22 MB / 485.5 MB, free: 2.934 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.3934, allocations: 367.6 kB / 485.8 MB, free: 2.496 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1452/0.5386, allocations: 5.616 MB / 491.4 MB, free: 133.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009932/0.5396, allocations: 67.27 kB / 491.5 MB, free: 133.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003426/0.543, allocations: 5.379 MB / 496.9 MB, free: 130.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.5442, allocations: 1.143 MB / 498 MB, free: 130 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002248/0.5465, allocations: 1.99 MB / 0.4883 GB, free: 129.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.28e-05/0.5465, allocations: 476.8 kB / 0.4888 GB, free: 129.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.5482, allocations: 0.9708 MB / 0.4897 GB, free: 129.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003806/0.552, allocations: 9.047 MB / 0.4985 GB, free: 119 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00605/0.558, allocations: 10.65 MB / 0.5089 GB, free: 108.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.393e-05/0.5581, allocations: 53.56 kB / 0.509 GB, free: 108.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.0094/0.5675, allocations: 7.867 MB / 0.5167 GB, free: 106.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.5675, allocations: 84.56 kB / 0.5167 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.5677, allocations: 186.9 kB / 0.5169 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/0.5707, allocations: 1.445 MB / 0.5183 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.5735, allocations: 2.004 MB / 0.5203 GB, free: 103.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006171/0.5797, allocations: 8.552 MB / 0.5286 GB, free: 95.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/0.5839, allocations: 393.7 kB / 0.529 GB, free: 94.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003797/0.5843, allocations: 459.5 kB / 0.5295 GB, free: 94.55 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.001956/0.5862, allocations: 0.8783 MB / 0.5303 GB, free: 93.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007242/0.5869, allocations: 0.6291 MB / 0.5309 GB, free: 93.03 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003727/0.5907, allocations: 2.566 MB / 0.5334 GB, free: 91.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/0.5907, allocations: 31.94 kB / 0.5335 GB, free: 91.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.5907, allocations: 12.75 kB / 0.5335 GB, free: 91.03 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5907, allocations: 11.39 kB / 0.5335 GB, free: 91.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.6018, allocations: 9.603 MB / 0.5429 GB, free: 81.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.6018, allocations: 19.94 kB / 0.5429 GB, free: 81.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000753/0.6025, allocations: 392.6 kB / 0.5433 GB, free: 81.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002537/0.6051, allocations: 1.17 MB / 0.5444 GB, free: 80.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.6052, allocations: 68 kB / 0.5445 GB, free: 80.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005317/0.6105, allocations: 8.409 MB / 0.5527 GB, free: 71.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/0.6105, allocations: 27.88 kB / 0.5527 GB, free: 71.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004144/0.6147, allocations: 4.349 MB / 0.557 GB, free: 66.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007744/0.6154, allocations: 0.582 MB / 0.5575 GB, free: 66.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004365/0.6159, allocations: 71.98 kB / 0.5576 GB, free: 66.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.6171, allocations: 76.02 kB / 0.5577 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002818/0.6174, allocations: 252.4 kB / 0.5579 GB, free: 65.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.6175, allocations: 83.98 kB / 0.558 GB, free: 65.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001812/0.6193, allocations: 2.367 MB / 0.5603 GB, free: 63.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.6193, allocations: 4 kB / 0.5603 GB, free: 63.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005342/0.6246, allocations: 1.898 MB / 0.5622 GB, free: 61.38 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.0005369/0.6252, allocations: 324.2 kB / 0.5625 GB, free: 61.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004762/0.6299, allocations: 4.77 MB / 0.5671 GB, free: 56.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.6299, allocations: 4.812 kB / 0.5671 GB, free: 56.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.6312, allocations: 1.629 MB / 0.5687 GB, free: 54.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/0.6337, allocations: 0.8408 MB / 0.5695 GB, free: 53.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.6485, allocations: 13.22 MB / 0.5825 GB, free: 40.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.65, allocations: 2.142 MB / 0.5845 GB, free: 37.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001897/0.6519, allocations: 0.7794 MB / 0.5853 GB, free: 37.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/0.6532, allocations: 0.9666 MB / 0.5862 GB, free: 36.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6532, allocations: 0 / 0.5862 GB, free: 36.14 MB / 394.7 MB Notification: Performance of Templates: time 0.2109/0.864, allocations: 70.66 MB / 0.6552 GB, free: 96.44 MB / 394.7 MB " [Timeout remaining time 659] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] 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","",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.216529667377472]