Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002527/0.002527, allocations: 161.7 kB / 24.26 MB, free: 176 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.632e-05/2.765e-05, allocations: 2.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01862/0.01865, allocations: 13.76 MB / 286.1 MB, free: 3.992 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1379/0.1565, allocations: 4.94 MB / 291 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003152/0.1597, allocations: 135.6 kB / 291.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009551/0.1692, allocations: 4.608 MB / 295.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00712/0.1763, allocations: 2.665 MB / 298.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.1791, allocations: 1.291 MB / 299.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.19, allocations: 9.215 MB / 308.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006748/0.1968, allocations: 5.205 MB / 314.1 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006723/0.2035, allocations: 3.793 MB / 317.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005729/0.2092, allocations: 3.762 MB / 321.7 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001937/0.2112, allocations: 0.5234 MB / 322.2 MB, free: 14.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.2152, allocations: 1.469 MB / 323.7 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004732/0.2199, allocations: 3.183 MB / 326.9 MB, free: 9.539 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004667/0.2246, allocations: 2.01 MB / 328.9 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01615/0.2407, allocations: 10.57 MB / 339.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.2407, allocations: 0 / 339.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2407, allocations: 0 / 339.4 MB, free: 13.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003662/0.2411, allocations: 0 / 339.4 MB, free: 13.46 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02581/0.2669, allocations: 7.893 MB / 347.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2669, allocations: 8.031 kB / 347.3 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0197/0.2867, allocations: 4.07 MB / 351.4 MB, free: 1.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.2988, allocations: 4.66 MB / 356.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003656/0.2992, allocations: 337.6 kB / 356.4 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001766/0.301, allocations: 472.7 kB / 356.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03417/0.3351, allocations: 14.76 MB / 371.6 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004197/0.3355, allocations: 75.47 kB / 371.7 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001537/0.3371, allocations: 207.8 kB / 371.9 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006408/0.3435, allocations: 2.848 MB / 374.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03228/0.3758, allocations: 13.28 MB / 388 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2396/0.6154, allocations: 54.84 MB / 442.9 MB, free: 85.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/0.6329, allocations: 7.053 MB / 449.9 MB, free: 85.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004806/0.6377, allocations: 4.67 MB / 454.6 MB, free: 83.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/0.6547, allocations: 12.03 MB / 466.6 MB, free: 78.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.6547, allocations: 70.25 kB / 466.7 MB, free: 78.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=327): time 6.292e-06/0.6547, allocations: 0 / 466.7 MB, free: 78.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=573): time 1.919/2.574, allocations: 438.3 MB / 0.8838 GB, free: 39.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/2.574, allocations: 277.6 kB / 0.8841 GB, free: 38.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006451/2.58, allocations: 5.183 MB / 0.8891 GB, free: 33.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00186/2.582, allocations: 113.7 kB / 0.8893 GB, free: 33.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/2.584, allocations: 4.061 MB / 0.8932 GB, free: 29.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002921/2.587, allocations: 2.077 MB / 0.8952 GB, free: 27.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00462/2.592, allocations: 2.155 MB / 0.8973 GB, free: 25.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.102e-05/2.592, allocations: 301.1 kB / 0.8976 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1609/2.753, allocations: 11.36 MB / 0.9087 GB, free: 146.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01736/2.77, allocations: 15.56 MB / 0.9239 GB, free: 137 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03061/2.8, allocations: 27.99 MB / 0.9513 GB, free: 120.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/2.801, allocations: 36.98 kB / 0.9513 GB, free: 120.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.4556/3.256, allocations: 142.9 MB / 1.091 GB, free: 127.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.54e-05/3.256, allocations: 65.84 kB / 1.091 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/3.256, allocations: 135.6 kB / 1.091 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1526/3.409, allocations: 76.59 MB / 1.166 GB, free: 60.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005172/3.414, allocations: 1.575 MB / 1.167 GB, free: 58.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5358/3.95, allocations: 205.4 MB / 1.368 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01332/3.963, allocations: 1.869 MB / 1.37 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002103/3.965, allocations: 0.5334 MB / 1.37 GB, free: 121 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 623 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (832): * Single equations (assignments): 825 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (17,101,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005779/3.971, allocations: 3.088 MB / 1.373 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002764/3.974, allocations: 0.7105 MB / 1.374 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.445/4.419, allocations: 138.1 MB / 1.509 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.697e-05/4.419, allocations: 59.66 kB / 1.509 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001765/4.419, allocations: 57.91 kB / 1.509 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001215/4.419, allocations: 30.23 kB / 1.509 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4972/4.917, allocations: 204.3 MB / 1.708 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.692e-05/4.917, allocations: 3.969 kB / 1.708 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/4.918, allocations: 349.2 kB / 1.709 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1446/5.063, allocations: 75.3 MB / 1.782 GB, free: 51.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001822/5.065, allocations: 107.1 kB / 1.782 GB, free: 51.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5066/5.571, allocations: 187.9 MB / 1.966 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.055e-05/5.571, allocations: 14.16 kB / 1.966 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4802/6.051, allocations: 154.6 MB / 2.117 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/6.053, allocations: 0.5691 MB / 2.117 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002666/6.056, allocations: 103.4 kB / 2.118 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01018/6.066, allocations: 1.621 MB / 2.119 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004634/6.071, allocations: 0.5243 MB / 2.12 GB, free: 112.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001227/6.072, allocations: 140.8 kB / 2.12 GB, free: 112.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004093/6.076, allocations: 3.141 MB / 2.123 GB, free: 112.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/6.076, allocations: 0.875 kB / 2.123 GB, free: 112.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01355/6.09, allocations: 4.151 MB / 2.127 GB, free: 112.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.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 (166): * Single equations (assignments): 159 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,156,34.9%), (17,98,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001612/6.091, allocations: 259.6 kB / 2.127 GB, free: 112.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.05376/6.145, allocations: 33.67 MB / 2.16 GB, free: 101.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/6.145, allocations: 0 / 2.16 GB, free: 101.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.045/6.19, allocations: 20.22 MB / 2.18 GB, free: 85.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008346/6.198, allocations: 0.7261 MB / 2.181 GB, free: 85.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03989/6.238, allocations: 27.67 MB / 2.208 GB, free: 60.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006031/6.244, allocations: 4.604 MB / 2.212 GB, free: 56.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003954/6.248, allocations: 1.983 MB / 2.214 GB, free: 55.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008378/6.249, allocations: 291.9 kB / 2.214 GB, free: 55.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.312e-06/6.249, allocations: 0 / 2.214 GB, free: 55.18 MB / 426.7 MB Notification: Performance of Templates: time 0.5717/6.821, allocations: 289 MB / 2.496 GB, free: 50.41 MB / 426.7 MB " [Timeout remaining time 653] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 16.392275598016568]