Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001417/0.001417, allocations: 119.5 kB / 18.41 MB, free: 4.684 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.001441/0.001442, allocations: 192.3 kB / 21.35 MB, free: 1.754 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.447/1.447, allocations: 222.9 MB / 247 MB, free: 4.324 MB / 190.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 51.92 kB / 358.7 MB, free: 8.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1097, allocations: 49.44 MB / 408.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.02132/0.1311, allocations: 15.91 MB / 424 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.1427, allocations: 5.108 MB / 429.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.1462, allocations: 119.6 kB / 429.2 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2308/0.377, allocations: 4.437 MB / 433.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007517/0.3846, allocations: 2.523 MB / 436.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.3878, allocations: 1.152 MB / 437.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.4016, allocations: 7.961 MB / 445.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006914/0.4085, allocations: 5.321 MB / 450.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00542/0.414, allocations: 2.46 MB / 453.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005481/0.4195, allocations: 3.36 MB / 456.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.4214, allocations: 0.5023 MB / 457 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003849/0.4253, allocations: 1.501 MB / 458.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00358/0.4289, allocations: 2.952 MB / 461.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006032/0.4349, allocations: 3.357 MB / 464.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01399/0.4489, allocations: 10.38 MB / 475.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.449, allocations: 0 / 475.1 MB, free: 3.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.449, allocations: 3.094 kB / 475.2 MB, free: 3.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003381/0.4493, allocations: 3.984 kB / 475.2 MB, free: 3.516 MB / 366.1 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.01937/0.4687, allocations: 7.797 MB / 483 MB, free: 11.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4688, allocations: 8.031 kB / 483 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01552/0.4843, allocations: 3.221 MB / 486.2 MB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.4957, allocations: 4.853 MB / 491 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003687/0.4961, allocations: 345 kB / 491.4 MB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001949/0.4981, allocations: 460.1 kB / 491.8 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03005/0.5282, allocations: 14.57 MB / 0.4945 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002361/0.5284, allocations: 75.41 kB / 0.4946 GB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006594/0.5291, allocations: 219.4 kB / 0.4948 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005745/0.5349, allocations: 2.832 MB / 0.4976 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02843/0.5633, allocations: 13.22 MB / 0.5105 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08545/0.6488, allocations: 58.35 MB / 0.5675 GB, free: 7.738 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01886/0.6677, allocations: 7.738 MB / 0.575 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006893/0.6747, allocations: 5.056 MB / 0.58 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02175/0.6965, allocations: 12.81 MB / 0.5925 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.521e-05/0.6966, allocations: 64.64 kB / 0.5925 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=326): time 8.446e-06/0.6966, allocations: 7.938 kB / 0.5925 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=572): time 2.379/3.076, allocations: 411.8 MB / 0.9947 GB, free: 156.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/3.076, allocations: 272.4 kB / 0.9949 GB, free: 155.8 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007839/3.084, allocations: 5.454 MB / 1 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001897/3.086, allocations: 113.5 kB / 1 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002823/3.088, allocations: 4.086 MB / 1.004 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002967/3.091, allocations: 2.108 MB / 1.006 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004165/3.096, allocations: 2.183 MB / 1.009 GB, free: 152 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.665e-05/3.096, allocations: 301.7 kB / 1.009 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0138/3.11, allocations: 11.06 MB / 1.02 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01714/3.127, allocations: 15.25 MB / 1.035 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02928/3.156, allocations: 27.44 MB / 1.061 GB, free: 119.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/3.156, allocations: 43.94 kB / 1.061 GB, free: 119 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5541/3.71, allocations: 141.1 MB / 1.199 GB, free: 140 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/3.71, allocations: 66.09 kB / 1.199 GB, free: 140 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/3.711, allocations: 138.9 kB / 1.199 GB, free: 140 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07762/3.788, allocations: 34.68 MB / 1.233 GB, free: 129.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004819/3.793, allocations: 1.572 MB / 1.235 GB, free: 129.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4954/4.288, allocations: 203.6 MB / 1.434 GB, free: 132.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01338/4.302, allocations: 1.722 MB / 1.435 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002354/4.304, allocations: 0.5383 MB / 1.436 GB, free: 130.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * 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 {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.005907/4.31, allocations: 3.095 MB / 1.439 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/4.312, allocations: 0.5995 MB / 1.439 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5225/4.835, allocations: 136.7 MB / 1.573 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000113/4.835, allocations: 59.08 kB / 1.573 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001945/4.835, allocations: 58.91 kB / 1.573 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001271/4.835, allocations: 31.55 kB / 1.573 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6828/5.518, allocations: 206 MB / 1.774 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.578e-05/5.518, allocations: 8.062 kB / 1.774 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/5.52, allocations: 327.2 kB / 1.774 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07121/5.591, allocations: 33.42 MB / 1.807 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001659/5.593, allocations: 96.75 kB / 1.807 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4645/6.057, allocations: 186.3 MB / 1.989 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/6.057, allocations: 10.56 kB / 1.989 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3145/6.372, allocations: 152.6 MB / 2.138 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/6.373, allocations: 0.6584 MB / 2.139 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00293/6.376, allocations: 99.98 kB / 2.139 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01031/6.387, allocations: 1.483 MB / 2.14 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004776/6.392, allocations: 0.4925 MB / 2.141 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001355/6.393, allocations: 140 kB / 2.141 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2847/6.678, allocations: 3.463 MB / 2.144 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.52e-07/6.678, allocations: 1.438 kB / 2.144 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0182/6.696, allocations: 3.86 MB / 2.148 GB, free: 149.3 MB / 0.5294 GB 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 (165): * Single equations (assignments): 158 * 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 {(20,157,40.5%), (16,99,51.6%), (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.002417/6.698, allocations: 246.8 kB / 2.148 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.06516/6.764, allocations: 33.85 MB / 2.181 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/6.764, allocations: 2 kB / 2.181 GB, free: 147.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03954/6.803, allocations: 20.59 MB / 2.201 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008383/6.812, allocations: 0.7787 MB / 2.202 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04486/6.857, allocations: 27.94 MB / 2.23 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007857/6.864, allocations: 5.063 MB / 2.234 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/6.866, allocations: 353.1 kB / 2.235 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/6.866, allocations: 0 / 2.235 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.5962/7.462, allocations: 256.4 MB / 2.485 GB, free: 38.63 MB / 0.5294 GB " [Timeout remaining time 653] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 28.29484370793216]