Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008756/0.0008756, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001164/0.00204, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000727/0.000727, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008552/0.001582, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9949/0.9949, allocations: 177.4 MB / 189.9 MB, free: 4.805 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09115/1.086, allocations: 53.86 MB / 243.7 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.398e-06/1.08e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01198/0.01199, allocations: 17.14 MB / 262.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009703/0.02169, allocations: 6.279 MB / 268.4 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.02342, allocations: 167.1 kB / 268.6 MB, free: 5.953 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1275/0.1509, allocations: 6.323 MB / 274.9 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007107/0.158, allocations: 2.997 MB / 277.9 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00361/0.1616, allocations: 2.336 MB / 280.2 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.1717, allocations: 10.1 MB / 290.3 MB, free: 15.76 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006571/0.1783, allocations: 6.736 MB / 297.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007765/0.186, allocations: 6.341 MB / 303.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005443/0.1915, allocations: 4.56 MB / 308 MB, free: 4.895 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001761/0.1932, allocations: 0.7344 MB / 308.7 MB, free: 4.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002826/0.1961, allocations: 1.926 MB / 310.6 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002596/0.1987, allocations: 3.658 MB / 314.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002384/0.201, allocations: 2.089 MB / 316.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006695/0.2077, allocations: 7.78 MB / 324.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.372e-05/0.2078, allocations: 0 / 324.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2078, allocations: 0 / 324.2 MB, free: 5.211 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001279/0.2079, allocations: 0 / 324.2 MB, free: 5.211 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.009322/0.2172, allocations: 9.838 MB / 334 MB, free: 11.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2172, allocations: 12.62 kB / 334 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006476/0.2237, allocations: 2.106 MB / 336.1 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.2282, allocations: 4.146 MB / 340.3 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.2284, allocations: 433 kB / 340.7 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006247/0.229, allocations: 0.5845 MB / 341.3 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009027/0.238, allocations: 8.291 MB / 349.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/0.2382, allocations: 76.91 kB / 349.6 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004341/0.2386, allocations: 268.8 kB / 349.9 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001826/0.2404, allocations: 2.336 MB / 352.2 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006606/0.2471, allocations: 4.068 MB / 356.3 MB, free: 5.953 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03768/0.2847, allocations: 47.84 MB / 404.2 MB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006558/0.2913, allocations: 2.968 MB / 407.1 MB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008174/0.2921, allocations: 0.6711 MB / 407.8 MB, free: 2.809 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008721/0.3008, allocations: 6.742 MB / 414.5 MB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.3009, allocations: 63.84 kB / 414.6 MB, free: 12.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=227): time 3.827e-06/0.3009, allocations: 0 / 414.6 MB, free: 12.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=276): time 0.1759/0.4767, allocations: 17.44 MB / 432 MB, free: 106.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.4768, allocations: 157.6 kB / 432.2 MB, free: 106.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004893/0.4817, allocations: 5.066 MB / 437.3 MB, free: 106.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.4819, allocations: 69.7 kB / 437.3 MB, free: 106.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001811/0.4837, allocations: 4.636 MB / 442 MB, free: 103.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006844/0.4844, allocations: 1.087 MB / 443.1 MB, free: 102.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.4857, allocations: 1.727 MB / 444.8 MB, free: 102.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.016e-05/0.4857, allocations: 309.6 kB / 445.1 MB, free: 102 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.4874, allocations: 1.197 MB / 446.3 MB, free: 102 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003295/0.4907, allocations: 6.5 MB / 452.8 MB, free: 94.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00543/0.4961, allocations: 8.277 MB / 461.1 MB, free: 88.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-05/0.4962, allocations: 50.19 kB / 461.1 MB, free: 88.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.00811/0.5043, allocations: 6.744 MB / 467.8 MB, free: 87.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.687e-05/0.5043, allocations: 81.16 kB / 467.9 MB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/0.5045, allocations: 184.3 kB / 468.1 MB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002953/0.5074, allocations: 1.452 MB / 469.6 MB, free: 87.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00333/0.5108, allocations: 2.224 MB / 471.8 MB, free: 86.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005884/0.5166, allocations: 6.759 MB / 478.5 MB, free: 83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/0.5208, allocations: 400 kB / 478.9 MB, free: 82.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003816/0.5212, allocations: 458.2 kB / 479.4 MB, free: 82.98 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.001902/0.5231, allocations: 0.8442 MB / 480.2 MB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005633/0.5236, allocations: 371.2 kB / 480.6 MB, free: 82.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/0.5268, allocations: 2.276 MB / 482.9 MB, free: 81.04 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/0.5268, allocations: 31.39 kB / 482.9 MB, free: 81.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.5268, allocations: 8 kB / 482.9 MB, free: 81.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.5268, allocations: 11.95 kB / 482.9 MB, free: 81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009961/0.5368, allocations: 8.287 MB / 491.2 MB, free: 73.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.032e-05/0.5368, allocations: 22 kB / 491.2 MB, free: 73.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009023/0.5377, allocations: 443.3 kB / 491.7 MB, free: 72.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009202/0.5386, allocations: 0.5443 MB / 492.2 MB, free: 72.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/0.542, allocations: 1.428 MB / 493.6 MB, free: 70.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.5422, allocations: 71.98 kB / 493.7 MB, free: 70.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00755/0.5497, allocations: 6.617 MB / 0.4886 GB, free: 64.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.766e-05/0.5497, allocations: 27.88 kB / 0.4886 GB, free: 63.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006071/0.5558, allocations: 3.777 MB / 0.4923 GB, free: 59.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.5569, allocations: 71.98 kB / 0.4924 GB, free: 59.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002291/0.5592, allocations: 88.66 kB / 0.4925 GB, free: 59.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004252/0.5596, allocations: 244.5 kB / 0.4927 GB, free: 59.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.5598, allocations: 79.98 kB / 0.4928 GB, free: 59.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00207/0.5619, allocations: 2.002 MB / 0.4947 GB, free: 57.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5619, allocations: 0 / 0.4947 GB, free: 57.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005309/0.5672, allocations: 1.883 MB / 0.4966 GB, free: 55.77 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.0005074/0.5677, allocations: 313.3 kB / 0.4969 GB, free: 55.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004374/0.5721, allocations: 4.253 MB / 0.501 GB, free: 51.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002144/0.5723, allocations: 148.8 kB / 0.5012 GB, free: 51.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.5735, allocations: 1.349 MB / 0.5025 GB, free: 49.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003181/0.5766, allocations: 1.619 MB / 0.5041 GB, free: 48.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.5941, allocations: 13.33 MB / 0.5171 GB, free: 34.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.5958, allocations: 2.131 MB / 0.5192 GB, free: 32.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002018/0.5978, allocations: 0.7794 MB / 0.5199 GB, free: 31.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/0.599, allocations: 0.9042 MB / 0.5208 GB, free: 30.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.462e-06/0.599, allocations: 0 / 0.5208 GB, free: 30.78 MB / 394.7 MB Notification: Performance of Templates: time 0.1949/0.7939, allocations: 70.55 MB / 0.5897 GB, free: 100.7 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.706170603632927]