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.0008798/0.0008798, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009717/0.0009717, allocations: 148.6 kB / 24.9 MB, free: 8.727 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.8787/0.8787, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.152e-06/1.152e-06, allocations: 0 / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18e-05/1.296e-05, allocations: 10.11 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0113/0.01131, allocations: 17.1 MB / 285.6 MB, free: 4.852 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1101/0.1214, allocations: 6.209 MB / 291.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002495/0.1239, allocations: 172 kB / 291.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006609/0.1305, allocations: 6.748 MB / 298.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004091/0.1346, allocations: 3.103 MB / 301.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002501/0.1371, allocations: 2.534 MB / 304.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006767/0.1439, allocations: 10.74 MB / 315.1 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004192/0.1481, allocations: 7.607 MB / 322.7 MB, free: 248 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005647/0.1537, allocations: 6.83 MB / 329.5 MB, free: 9.965 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003524/0.1572, allocations: 4.597 MB / 334.1 MB, free: 5.672 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006538/0.1579, allocations: 0.7383 MB / 334.8 MB, free: 4.934 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.16, allocations: 1.876 MB / 336.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002152/0.1621, allocations: 4.128 MB / 340.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002026/0.1641, allocations: 2.601 MB / 343.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005866/0.17, allocations: 8.472 MB / 351.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.17, allocations: 4 kB / 351.9 MB, free: 4.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.17, allocations: 0 / 351.9 MB, free: 4.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.789e-05/0.1701, allocations: 0 / 351.9 MB, free: 4.66 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.007881/0.178, allocations: 8.217 MB / 360.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.178, allocations: 8.922 kB / 360.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005642/0.1836, allocations: 2.034 MB / 362.2 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004474/0.1881, allocations: 4.164 MB / 366.3 MB, free: 6.602 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.1883, allocations: 435.7 kB / 366.8 MB, free: 6.176 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000597/0.1889, allocations: 0.582 MB / 367.3 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008323/0.1972, allocations: 8.297 MB / 375.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001351/0.1973, allocations: 79.33 kB / 375.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/0.1978, allocations: 271.8 kB / 376 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001766/0.1995, allocations: 2.311 MB / 378.3 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006863/0.2064, allocations: 4.082 MB / 382.4 MB, free: 5.523 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03413/0.2405, allocations: 47.82 MB / 430.2 MB, free: 4.148 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006638/0.2472, allocations: 3.035 MB / 433.2 MB, free: 1.074 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007888/0.248, allocations: 0.6777 MB / 433.9 MB, free: 400 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1833/0.4312, allocations: 6.78 MB / 440.7 MB, free: 116.6 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.4313, allocations: 59.5 kB / 440.8 MB, free: 116.6 MB / 378.8 MB Notification: Performance of pre-optimization done (n=227): time 4.549e-06/0.4313, allocations: 0 / 440.8 MB, free: 116.6 MB / 378.8 MB Notification: Performance of matching and sorting (n=276): time 0.04056/0.4718, allocations: 17.62 MB / 458.4 MB, free: 116.2 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.4719, allocations: 369.4 kB / 458.7 MB, free: 115.8 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/0.475, allocations: 5.077 MB / 463.8 MB, free: 112.4 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.4751, allocations: 65.7 kB / 463.9 MB, free: 112.4 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.4763, allocations: 4.635 MB / 468.5 MB, free: 108.2 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004465/0.4767, allocations: 1.099 MB / 469.6 MB, free: 107.1 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/0.4779, allocations: 1.714 MB / 471.3 MB, free: 105.6 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.511e-05/0.4779, allocations: 305.1 kB / 471.6 MB, free: 105.3 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.4794, allocations: 1.202 MB / 472.8 MB, free: 104.1 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.4818, allocations: 6.505 MB / 479.3 MB, free: 95.02 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/0.4856, allocations: 8.265 MB / 487.6 MB, free: 84.47 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.709e-05/0.4856, allocations: 52 kB / 487.6 MB, free: 84.42 MB / 378.8 MB Notification: Performance of matching and sorting (n=1180) (initialization): time 0.00648/0.4921, allocations: 6.734 MB / 494.4 MB, free: 77.63 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.571e-05/0.4921, allocations: 86.5 kB / 494.5 MB, free: 77.55 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.681e-05/0.4922, allocations: 184.8 kB / 494.6 MB, free: 77.37 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/0.495, allocations: 1.452 MB / 496.1 MB, free: 75.91 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/0.498, allocations: 1.996 MB / 498.1 MB, free: 73.91 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005726/0.5037, allocations: 6.753 MB / 0.493 GB, free: 66.86 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005439/0.5092, allocations: 387.6 kB / 0.4934 GB, free: 66.48 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003848/0.5096, allocations: 456.1 kB / 0.4938 GB, free: 66.04 MB / 378.8 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.001599/0.5112, allocations: 0.8541 MB / 0.4947 GB, free: 65.17 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000513/0.5117, allocations: 363.9 kB / 0.495 GB, free: 64.81 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/0.5148, allocations: 2.27 MB / 0.4972 GB, free: 62.51 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.5148, allocations: 31.98 kB / 0.4972 GB, free: 62.48 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.5148, allocations: 4 kB / 0.4972 GB, free: 62.47 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.5148, allocations: 15.95 kB / 0.4973 GB, free: 62.46 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008667/0.5235, allocations: 8.294 MB / 0.5054 GB, free: 53.78 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.5235, allocations: 24.06 kB / 0.5054 GB, free: 53.75 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.5242, allocations: 383.4 kB / 0.5058 GB, free: 53.38 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/0.5268, allocations: 1.425 MB / 0.5071 GB, free: 51.94 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.5269, allocations: 71.98 kB / 0.5072 GB, free: 51.87 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004734/0.5316, allocations: 6.597 MB / 0.5137 GB, free: 44.98 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.305e-06/0.5316, allocations: 27.88 kB / 0.5137 GB, free: 44.95 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003573/0.5352, allocations: 3.78 MB / 0.5174 GB, free: 40.76 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006743/0.5359, allocations: 0.543 MB / 0.5179 GB, free: 40.21 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004134/0.5363, allocations: 71.98 kB / 0.518 GB, free: 40.14 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.5374, allocations: 71.98 kB / 0.518 GB, free: 40.07 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/0.5377, allocations: 256.3 kB / 0.5183 GB, free: 39.82 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.5378, allocations: 80 kB / 0.5184 GB, free: 39.74 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.001399/0.5392, allocations: 1.998 MB / 0.5203 GB, free: 37.77 MB / 378.8 MB Notification: Performance of sort global known variables: time 8e-08/0.5392, allocations: 4.031 kB / 0.5203 GB, free: 37.77 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.004439/0.5436, allocations: 1.898 MB / 0.5222 GB, free: 35.87 MB / 378.8 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.0004785/0.5441, allocations: 301.1 kB / 0.5225 GB, free: 35.57 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003738/0.5478, allocations: 4.256 MB / 0.5266 GB, free: 31.29 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001548/0.548, allocations: 124.2 kB / 0.5267 GB, free: 31.16 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.549, allocations: 1.36 MB / 0.5281 GB, free: 29.76 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.5521, allocations: 1.182 MB / 0.5292 GB, free: 28.6 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.5625, allocations: 12.96 MB / 0.5419 GB, free: 15.27 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/0.5639, allocations: 2.122 MB / 0.5439 GB, free: 13.11 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.001561/0.5654, allocations: 0.7833 MB / 0.5447 GB, free: 12.33 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.5666, allocations: 0.9053 MB / 0.5456 GB, free: 11.42 MB / 378.8 MB Notification: Performance of SimCode: time 1.122e-06/0.5666, allocations: 4 kB / 0.5456 GB, free: 11.41 MB / 378.8 MB Notification: Performance of Templates: time 0.1747/0.7414, allocations: 68.95 MB / 0.6129 GB, free: 86.16 MB / 394.8 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.582021558191627]