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.001516/0.001516, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001755/0.001755, allocations: 184.1 kB / 23.71 MB, free: 4.695 MB / 14.72 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.426/1.426, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 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 0.001566/0.001566, allocations: 51.92 kB / 370.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2551, allocations: 52.2 MB / 423.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02126/0.2764, allocations: 18.27 MB / 441.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.2902, allocations: 6.101 MB / 447.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003749/0.2939, allocations: 175.1 kB / 447.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.3058, allocations: 6.371 MB / 454.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007403/0.3132, allocations: 2.93 MB / 457 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005288/0.3185, allocations: 2.308 MB / 459.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01424/0.3328, allocations: 9.519 MB / 468.8 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007718/0.3405, allocations: 5.821 MB / 474.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005712/0.3462, allocations: 3.257 MB / 477.9 MB, free: 7.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007294/0.3535, allocations: 4.475 MB / 482.4 MB, free: 3.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002338/0.3558, allocations: 0.7148 MB / 483.1 MB, free: 2.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004495/0.3603, allocations: 1.966 MB / 485 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005181/0.3655, allocations: 3.908 MB / 489 MB, free: 12.6 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00836/0.3739, allocations: 4.146 MB / 493.1 MB, free: 8.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01732/0.3912, allocations: 13.27 MB / 0.4945 GB, free: 11.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3912, allocations: 0 / 0.4945 GB, free: 11.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3912, allocations: 0 / 0.4945 GB, free: 11.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003955/0.3916, allocations: 0 / 0.4945 GB, free: 11.11 MB / 414.1 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.02694/0.4185, allocations: 9.066 MB / 0.5034 GB, free: 1.969 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4186, allocations: 8.031 kB / 0.5034 GB, free: 1.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05192/0.4705, allocations: 4.895 MB / 0.5081 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01788/0.4884, allocations: 6.42 MB / 0.5144 GB, free: 6.551 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005133/0.4889, allocations: 435.7 kB / 0.5148 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002763/0.4917, allocations: 0.5818 MB / 0.5154 GB, free: 5.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03994/0.5316, allocations: 17.04 MB / 0.532 GB, free: 3.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004558/0.5321, allocations: 87.36 kB / 0.5321 GB, free: 3.465 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002379/0.5344, allocations: 267.8 kB / 0.5324 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005909/0.5403, allocations: 2.654 MB / 0.535 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4409/0.9812, allocations: 14.78 MB / 0.5494 GB, free: 95.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07627/1.057, allocations: 64.17 MB / 0.6121 GB, free: 31.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02136/1.079, allocations: 8.045 MB / 0.6199 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004871/1.084, allocations: 4.737 MB / 0.6246 GB, free: 18.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02567/1.109, allocations: 17.98 MB / 0.6421 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/1.109, allocations: 68.56 kB / 0.6422 GB, free: 1.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.51e-06/1.109, allocations: 0 / 0.6422 GB, free: 1.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2906/1.4, allocations: 74.17 MB / 0.7146 GB, free: 7.285 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003186/1.4, allocations: 372.6 kB / 0.715 GB, free: 6.84 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01358/1.414, allocations: 6.38 MB / 0.7212 GB, free: 0.5625 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001189/1.415, allocations: 85.69 kB / 0.7213 GB, free: 484 kB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005456/1.421, allocations: 4.937 MB / 0.7261 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003026/1.424, allocations: 1.442 MB / 0.7275 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005811/1.429, allocations: 1.987 MB / 0.7294 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.00017/1.43, allocations: 305.1 kB / 0.7297 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01003/1.44, allocations: 5.992 MB / 0.7356 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2346/1.674, allocations: 11.03 MB / 0.7464 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01718/1.691, allocations: 17.96 MB / 0.7639 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001233/1.692, allocations: 49.5 kB / 0.7639 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.044/1.736, allocations: 23.29 MB / 0.7867 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.792e-05/1.736, allocations: 80 kB / 0.7868 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/1.736, allocations: 172 kB / 0.7869 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/1.757, allocations: 7.444 MB / 0.7942 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007451/1.765, allocations: 2.191 MB / 0.7963 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0449/1.81, allocations: 37.81 MB / 0.8333 GB, free: 102.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/1.82, allocations: 0.7441 MB / 0.834 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/1.822, allocations: 0.5273 MB / 0.8345 GB, free: 101.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * 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,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005126/1.827, allocations: 3.438 MB / 0.8379 GB, free: 98.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001264/1.828, allocations: 0.6054 MB / 0.8384 GB, free: 97.75 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03101/1.859, allocations: 16.88 MB / 0.8549 GB, free: 80.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.916e-05/1.859, allocations: 48 kB / 0.855 GB, free: 80.77 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.411e-05/1.859, allocations: 20 kB / 0.855 GB, free: 80.75 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.101e-05/1.859, allocations: 15.94 kB / 0.855 GB, free: 80.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05088/1.91, allocations: 31.92 MB / 0.8862 GB, free: 48.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-05/1.91, allocations: 4 kB / 0.8862 GB, free: 48.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003312/1.914, allocations: 0.6086 MB / 0.8868 GB, free: 47.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02014/1.934, allocations: 7.002 MB / 0.8936 GB, free: 40.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009727/1.935, allocations: 65.97 kB / 0.8937 GB, free: 40.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04153/1.976, allocations: 36.02 MB / 0.9289 GB, free: 4.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.976, allocations: 4 kB / 0.9289 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2888/2.265, allocations: 24.56 MB / 0.9528 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/2.267, allocations: 0.5807 MB / 0.9534 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001345/2.268, allocations: 59.69 kB / 0.9535 GB, free: 177.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0042/2.272, allocations: 446.1 kB / 0.9539 GB, free: 177.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001238/2.273, allocations: 266.7 kB / 0.9541 GB, free: 177.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006235/2.274, allocations: 98.62 kB / 0.9542 GB, free: 177.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008059/2.282, allocations: 4.044 MB / 0.9582 GB, free: 176.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/2.282, allocations: 0 / 0.9582 GB, free: 176.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01479/2.297, allocations: 2.299 MB / 0.9604 GB, free: 175.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (243): * Single equations (assignments): 236 * 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,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001551/2.299, allocations: 279.6 kB / 0.9607 GB, free: 175.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02929/2.328, allocations: 14.2 MB / 0.9746 GB, free: 169.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/2.328, allocations: 0 / 0.9746 GB, free: 169.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01393/2.342, allocations: 6.158 MB / 0.9806 GB, free: 164.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007194/2.349, allocations: 0.8887 MB / 0.9814 GB, free: 163.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03039/2.379, allocations: 20.3 MB / 1.001 GB, free: 144.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006847/2.386, allocations: 5.274 MB / 1.006 GB, free: 139.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006407/2.393, allocations: 3.013 MB / 1.009 GB, free: 136.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/2.395, allocations: 387.4 kB / 1.01 GB, free: 135.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/2.395, allocations: 0 / 1.01 GB, free: 135.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1413/2.536, allocations: 112.9 MB / 1.12 GB, free: 23.59 MB / 0.545 GB " [Timeout remaining time 657] 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.74251245521009]