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.001842/0.001842, allocations: 75.19 kB / 21.24 MB, free: 0.5469 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.002307/0.002307, allocations: 150.1 kB / 24.49 MB, free: 3.73 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.411/1.411, allocations: 173.4 MB / 201.1 MB, free: 12.71 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.00165/0.00165, allocations: 45.58 kB / 319.4 MB, free: 3.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08674, allocations: 52.17 MB / 371.6 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01684/0.1036, allocations: 13.78 MB / 385.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.114, allocations: 4.93 MB / 390.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002187/0.1162, allocations: 135.2 kB / 390.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008448/0.1247, allocations: 4.334 MB / 394.8 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006957/0.1316, allocations: 2.626 MB / 397.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.134, allocations: 1.154 MB / 398.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.1443, allocations: 7.98 MB / 406.5 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00504/0.1493, allocations: 4.279 MB / 410.8 MB, free: 32 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00352/0.1529, allocations: 2.508 MB / 413.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005048/0.1579, allocations: 3.419 MB / 416.7 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009309/0.1588, allocations: 0.5039 MB / 417.2 MB, free: 9.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002573/0.1614, allocations: 1.393 MB / 418.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002878/0.1643, allocations: 3.046 MB / 421.7 MB, free: 5.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003008/0.1673, allocations: 2.532 MB / 424.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.1808, allocations: 10.44 MB / 434.6 MB, free: 8.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1808, allocations: 0 / 434.6 MB, free: 8.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1808, allocations: 4 kB / 434.7 MB, free: 8.098 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.181, allocations: 0 / 434.7 MB, free: 8.098 MB / 398.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.01645/0.1975, allocations: 7.719 MB / 442.4 MB, free: 308 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1975, allocations: 12.86 kB / 442.4 MB, free: 296 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.2128, allocations: 3.346 MB / 445.7 MB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.2242, allocations: 4.771 MB / 450.5 MB, free: 8.078 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.2246, allocations: 338.2 kB / 450.8 MB, free: 7.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.2259, allocations: 463.7 kB / 451.3 MB, free: 7.293 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02608/0.252, allocations: 14.66 MB / 465.9 MB, free: 7.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001918/0.2522, allocations: 75.45 kB / 466 MB, free: 7.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005825/0.2528, allocations: 211.8 kB / 466.2 MB, free: 7.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005633/0.2584, allocations: 2.832 MB / 469.1 MB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2295/0.4879, allocations: 13.15 MB / 482.2 MB, free: 80.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05914/0.547, allocations: 54.09 MB / 0.5237 GB, free: 34.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01571/0.5627, allocations: 7.1 MB / 0.5307 GB, free: 27.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004681/0.5674, allocations: 4.588 MB / 0.5351 GB, free: 22.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/0.5844, allocations: 11.5 MB / 0.5464 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.783e-05/0.5845, allocations: 64.7 kB / 0.5464 GB, free: 11.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 6.923e-06/0.5845, allocations: 3.094 kB / 0.5464 GB, free: 11.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.049/2.633, allocations: 413.5 MB / 0.9502 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/2.633, allocations: 269 kB / 0.9505 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005682/2.639, allocations: 4.972 MB / 0.9553 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001451/2.641, allocations: 113.7 kB / 0.9554 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001693/2.642, allocations: 4.115 MB / 0.9595 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002261/2.645, allocations: 2.104 MB / 0.9615 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004855/2.649, allocations: 2.191 MB / 0.9637 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.473e-05/2.649, allocations: 309.1 kB / 0.964 GB, free: 104 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01168/2.661, allocations: 11.06 MB / 0.9748 GB, free: 92.89 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.013/2.674, allocations: 15.32 MB / 0.9897 GB, free: 75.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02632/2.7, allocations: 27.45 MB / 1.017 GB, free: 46.32 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/2.701, allocations: 40 kB / 1.017 GB, free: 46.29 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5375/3.238, allocations: 140.7 MB / 1.154 GB, free: 100 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.644e-05/3.238, allocations: 71.8 kB / 1.154 GB, free: 99.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.607e-05/3.238, allocations: 140 kB / 1.154 GB, free: 99.79 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07527/3.314, allocations: 34.67 MB / 1.188 GB, free: 65.27 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004584/3.318, allocations: 1.562 MB / 1.19 GB, free: 63.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4561/3.774, allocations: 200.9 MB / 1.386 GB, free: 80.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01247/3.787, allocations: 1.723 MB / 1.387 GB, free: 78.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/3.789, allocations: 0.5388 MB / 1.388 GB, free: 78.3 MB / 0.545 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.005593/3.794, allocations: 3.085 MB / 1.391 GB, free: 75.43 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00218/3.796, allocations: 0.5485 MB / 1.391 GB, free: 75.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5211/4.317, allocations: 136.3 MB / 1.525 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.423e-05/4.318, allocations: 56 kB / 1.525 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001721/4.318, allocations: 60 kB / 1.525 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001131/4.318, allocations: 27.89 kB / 1.525 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5841/4.902, allocations: 201.6 MB / 1.722 GB, free: 140.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.785e-05/4.902, allocations: 5.344 kB / 1.722 GB, free: 140.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/4.904, allocations: 337 kB / 1.722 GB, free: 140.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07115/4.975, allocations: 33.4 MB / 1.754 GB, free: 113.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001528/4.976, allocations: 108.2 kB / 1.755 GB, free: 113.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4227/5.399, allocations: 183.6 MB / 1.934 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/5.399, allocations: 8.688 kB / 1.934 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.523/5.922, allocations: 152.2 MB / 2.082 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/5.923, allocations: 0.5081 MB / 2.083 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/5.926, allocations: 105.5 kB / 2.083 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009679/5.935, allocations: 1.48 MB / 2.084 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003724/5.939, allocations: 0.5223 MB / 2.085 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001299/5.94, allocations: 142.1 kB / 2.085 GB, free: 149.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006811/5.947, allocations: 2.967 MB / 2.088 GB, free: 149 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/5.947, allocations: 0 / 2.088 GB, free: 149 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01356/5.961, allocations: 3.845 MB / 2.092 GB, free: 149 MB / 0.545 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.00162/5.962, allocations: 241.6 kB / 2.092 GB, free: 148.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0525/6.015, allocations: 32.75 MB / 2.124 GB, free: 137.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/6.015, allocations: 0 / 2.124 GB, free: 137.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03695/6.052, allocations: 19.59 MB / 2.143 GB, free: 122.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005827/6.058, allocations: 0.6871 MB / 2.144 GB, free: 121.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/6.094, allocations: 27.39 MB / 2.171 GB, free: 95.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006583/6.1, allocations: 4.608 MB / 2.175 GB, free: 91.36 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004207/6.104, allocations: 1.99 MB / 2.177 GB, free: 89.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008475/6.105, allocations: 284.5 kB / 2.177 GB, free: 89.18 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/6.105, allocations: 0 / 2.177 GB, free: 89.18 MB / 0.545 GB Notification: Performance of Templates: time 0.4734/6.579, allocations: 280 MB / 2.451 GB, free: 14.89 MB / 0.5606 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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 16.01615427597426]