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.00104/0.00104, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.0009192/0.0009192, allocations: 145.1 kB / 24.54 MB, free: 36 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 0.9203/0.9203, allocations: 173.4 MB / 201.1 MB, free: 8.988 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.332e-06/1.332e-06, allocations: 0 / 268 MB, free: 6.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.628e-05/1.761e-05, allocations: 2.312 kB / 268 MB, free: 6.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01648/0.0165, allocations: 17.67 MB / 285.7 MB, free: 4.535 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1257/0.1422, allocations: 5.986 MB / 291.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003139/0.1453, allocations: 173.9 kB / 291.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007596/0.1529, allocations: 6.778 MB / 298.6 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0049/0.1578, allocations: 3.037 MB / 301.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002865/0.1607, allocations: 2.53 MB / 304.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008072/0.1688, allocations: 10.79 MB / 315 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005787/0.1746, allocations: 7.455 MB / 322.4 MB, free: 480 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008038/0.1826, allocations: 6.879 MB / 329.3 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00525/0.1878, allocations: 4.778 MB / 334.1 MB, free: 5.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001439/0.1893, allocations: 0.7383 MB / 334.8 MB, free: 5.012 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.1918, allocations: 1.88 MB / 336.7 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002739/0.1946, allocations: 4.136 MB / 340.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004975/0.1995, allocations: 2.598 MB / 343.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007905/0.2074, allocations: 8.48 MB / 351.9 MB, free: 4.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.2075, allocations: 0 / 351.9 MB, free: 4.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2075, allocations: 0 / 351.9 MB, free: 4.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.203e-05/0.2075, allocations: 0 / 351.9 MB, free: 4.68 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.01042/0.218, allocations: 9.787 MB / 361.7 MB, free: 10.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.218, allocations: 12.92 kB / 361.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02116/0.2392, allocations: 5.61 MB / 367.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00743/0.2466, allocations: 5.103 MB / 372.4 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002206/0.2468, allocations: 435.5 kB / 372.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007304/0.2476, allocations: 0.5853 MB / 373.4 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.014/0.2616, allocations: 10.53 MB / 383.9 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.2617, allocations: 75.36 kB / 384 MB, free: 3.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004302/0.2621, allocations: 268.9 kB / 384.3 MB, free: 3.219 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001999/0.2641, allocations: 2.498 MB / 386.8 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.2756, allocations: 5.677 MB / 392.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1857/0.4613, allocations: 66.13 MB / 458.6 MB, free: 68.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.4716, allocations: 4.433 MB / 463 MB, free: 68.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.473, allocations: 1.012 MB / 464 MB, free: 68.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009615/0.4827, allocations: 7.864 MB / 471.9 MB, free: 67.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.4827, allocations: 66.05 kB / 472 MB, free: 67.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=227): time 4.328e-06/0.4827, allocations: 0 / 472 MB, free: 67.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=276): time 0.06024/0.5429, allocations: 31.72 MB / 0.4919 GB, free: 49.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.543, allocations: 364.1 kB / 0.4922 GB, free: 48.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/0.5479, allocations: 5.689 MB / 0.4978 GB, free: 43.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.5481, allocations: 72.44 kB / 0.4979 GB, free: 42.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/0.5502, allocations: 5.33 MB / 0.5031 GB, free: 37.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006635/0.5508, allocations: 1.135 MB / 0.5042 GB, free: 36.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001393/0.5522, allocations: 1.956 MB / 0.5061 GB, free: 34.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.652e-05/0.5522, allocations: 484.8 kB / 0.5065 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.5543, allocations: 1.087 MB / 0.5076 GB, free: 33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004332/0.5586, allocations: 9.105 MB / 0.5165 GB, free: 20.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007636/0.5662, allocations: 10.96 MB / 0.5272 GB, free: 6.438 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-05/0.5663, allocations: 56 kB / 0.5273 GB, free: 6.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.01444/0.5808, allocations: 8.981 MB / 0.536 GB, free: 13.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.5809, allocations: 86.5 kB / 0.5361 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002212/0.5811, allocations: 184.3 kB / 0.5363 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005375/0.5865, allocations: 2.074 MB / 0.5383 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005063/0.5915, allocations: 2.086 MB / 0.5403 GB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.6027, allocations: 9.272 MB / 0.5494 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/0.6076, allocations: 0.6904 MB / 0.5501 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005767/0.6082, allocations: 0.5221 MB / 0.5506 GB, free: 14.11 MB / 410.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.001933/0.6101, allocations: 0.8877 MB / 0.5514 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007771/0.6109, allocations: 0.6136 MB / 0.552 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005277/0.6162, allocations: 3.322 MB / 0.5553 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.6162, allocations: 32 kB / 0.5553 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.6162, allocations: 4 kB / 0.5553 GB, free: 9.207 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.6162, allocations: 11.95 kB / 0.5553 GB, free: 9.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.6297, allocations: 10.34 MB / 0.5654 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.6297, allocations: 16 kB / 0.5655 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008938/0.6306, allocations: 460.1 kB / 0.5659 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003275/0.6338, allocations: 1.682 MB / 0.5675 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001401/0.634, allocations: 74.7 kB / 0.5676 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008106/0.6421, allocations: 8.994 MB / 0.5764 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.396e-05/0.6421, allocations: 27.88 kB / 0.5764 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1351/0.7772, allocations: 5.001 MB / 0.5813 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/0.7785, allocations: 0.6045 MB / 0.5819 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005896/0.7791, allocations: 69.28 kB / 0.582 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.7806, allocations: 286.9 kB / 0.5822 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004426/0.7811, allocations: 245.5 kB / 0.5825 GB, free: 138.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001462/0.7812, allocations: 97.59 kB / 0.5826 GB, free: 138.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003495/0.7847, allocations: 2.579 MB / 0.5851 GB, free: 137.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7847, allocations: 3.5 kB / 0.5851 GB, free: 137.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005062/0.7898, allocations: 1.9 MB / 0.5869 GB, free: 137.9 MB / 426.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.0005733/0.7903, allocations: 316.6 kB / 0.5872 GB, free: 137.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006175/0.7965, allocations: 5.218 MB / 0.5923 GB, free: 137 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/0.7965, allocations: 2.094 kB / 0.5923 GB, free: 137 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.7983, allocations: 1.821 MB / 0.5941 GB, free: 136.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.8008, allocations: 0.8418 MB / 0.5949 GB, free: 136.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.8144, allocations: 13.29 MB / 0.6079 GB, free: 130.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001724/0.8161, allocations: 2.142 MB / 0.61 GB, free: 130.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003087/0.8192, allocations: 2.252 MB / 0.6122 GB, free: 130.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/0.8199, allocations: 358.5 kB / 0.6125 GB, free: 130.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/0.8199, allocations: 0 / 0.6125 GB, free: 130.1 MB / 426.7 MB Notification: Performance of Templates: time 0.07614/0.896, allocations: 66.31 MB / 0.6773 GB, free: 69.43 MB / 426.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: 4.814054551068693]