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.001508/0.001508, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001441/0.001441, allocations: 209.6 kB / 23.73 MB, free: 4.523 MB / 14.72 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 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 0.001602/0.001602, allocations: 52 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2894, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01804/0.3074, allocations: 13.74 MB / 445.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.3184, allocations: 4.936 MB / 450.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.3211, allocations: 135.2 kB / 450.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009017/0.3301, allocations: 4.322 MB / 454.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007268/0.3373, allocations: 2.579 MB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00295/0.3403, allocations: 1.158 MB / 458.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.3549, allocations: 8.116 MB / 466.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008416/0.3633, allocations: 4.29 MB / 470.9 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005784/0.3691, allocations: 2.508 MB / 473.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006787/0.3759, allocations: 3.614 MB / 477 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002257/0.3781, allocations: 0.5039 MB / 477.5 MB, free: 8.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.3825, allocations: 1.405 MB / 478.9 MB, free: 7.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005169/0.3876, allocations: 3.031 MB / 481.9 MB, free: 4.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006448/0.3941, allocations: 2.513 MB / 484.4 MB, free: 1.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01447/0.4086, allocations: 10.4 MB / 494.8 MB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4086, allocations: 0 / 494.8 MB, free: 7.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4086, allocations: 0 / 494.8 MB, free: 7.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002853/0.4089, allocations: 0 / 494.8 MB, free: 7.18 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.02102/0.4299, allocations: 7.75 MB / 0.4908 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.4299, allocations: 8.031 kB / 0.4908 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/0.4455, allocations: 3.335 MB / 0.4941 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/0.4583, allocations: 4.696 MB / 0.4987 GB, free: 7.219 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003598/0.4587, allocations: 341.1 kB / 0.499 GB, free: 6.883 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00195/0.4607, allocations: 471.6 kB / 0.4994 GB, free: 6.422 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0307/0.4914, allocations: 14.64 MB / 0.5137 GB, free: 6.832 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002789/0.4916, allocations: 71.42 kB / 0.5138 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001124/0.4928, allocations: 211.8 kB / 0.514 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006256/0.499, allocations: 2.836 MB / 0.5168 GB, free: 3.711 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03029/0.5293, allocations: 13.15 MB / 0.5296 GB, free: 6.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3012/0.8305, allocations: 53.9 MB / 0.5822 GB, free: 57.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01538/0.8459, allocations: 6.932 MB / 0.589 GB, free: 50.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004507/0.8504, allocations: 4.59 MB / 0.5935 GB, free: 46.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01692/0.8673, allocations: 11.45 MB / 0.6047 GB, free: 34.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.8674, allocations: 72.58 kB / 0.6047 GB, free: 34.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.412e-06/0.8674, allocations: 0 / 0.6047 GB, free: 34.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.119/2.986, allocations: 411.5 MB / 1.007 GB, free: 155.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/2.986, allocations: 261.7 kB / 1.007 GB, free: 155.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005875/2.992, allocations: 4.971 MB / 1.012 GB, free: 150.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001941/2.994, allocations: 109.7 kB / 1.012 GB, free: 150.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001957/2.996, allocations: 4.117 MB / 1.016 GB, free: 147.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002784/2.999, allocations: 2.106 MB / 1.018 GB, free: 145.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004641/3.003, allocations: 2.183 MB / 1.02 GB, free: 142.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.37e-05/3.003, allocations: 308.8 kB / 1.02 GB, free: 142.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01266/3.016, allocations: 11.06 MB / 1.031 GB, free: 131.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01682/3.033, allocations: 15.31 MB / 1.046 GB, free: 114.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02895/3.062, allocations: 27.45 MB / 1.073 GB, free: 84.96 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001334/3.062, allocations: 40 kB / 1.073 GB, free: 84.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5993/3.661, allocations: 140.8 MB / 1.21 GB, free: 142.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.421e-05/3.661, allocations: 65.09 kB / 1.21 GB, free: 142.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/3.662, allocations: 140 kB / 1.211 GB, free: 142.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07754/3.739, allocations: 34.67 MB / 1.244 GB, free: 108 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004983/3.744, allocations: 1.579 MB / 1.246 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5174/4.261, allocations: 200.9 MB / 1.442 GB, free: 108.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01312/4.275, allocations: 1.721 MB / 1.444 GB, free: 107.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002402/4.277, allocations: 0.5404 MB / 1.444 GB, free: 107.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.006928/4.284, allocations: 3.087 MB / 1.447 GB, free: 104.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002148/4.286, allocations: 0.5477 MB / 1.448 GB, free: 104.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5202/4.806, allocations: 136.3 MB / 1.581 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.97e-05/4.806, allocations: 62.45 kB / 1.581 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001372/4.806, allocations: 61.28 kB / 1.581 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/4.807, allocations: 26.53 kB / 1.581 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5743/5.381, allocations: 201.6 MB / 1.778 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-05/5.381, allocations: 3.562 kB / 1.778 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/5.382, allocations: 334.5 kB / 1.778 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07229/5.455, allocations: 33.42 MB / 1.811 GB, free: 165 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001715/5.456, allocations: 106 kB / 1.811 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4821/5.939, allocations: 183.6 MB / 1.991 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/5.939, allocations: 10.38 kB / 1.991 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3119/6.25, allocations: 152.2 MB / 2.139 GB, free: 44.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/6.252, allocations: 0.5107 MB / 2.14 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00284/6.255, allocations: 96 kB / 2.14 GB, free: 43.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009525/6.264, allocations: 1.486 MB / 2.141 GB, free: 42.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005346/6.27, allocations: 0.5222 MB / 2.142 GB, free: 41.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00189/6.272, allocations: 140 kB / 2.142 GB, free: 41.73 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005895/6.278, allocations: 2.968 MB / 2.145 GB, free: 38.77 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/6.278, allocations: 0 / 2.145 GB, free: 38.77 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01926/6.297, allocations: 3.833 MB / 2.149 GB, free: 34.94 MB / 0.5606 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.002559/6.299, allocations: 241 kB / 2.149 GB, free: 34.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2954/6.595, allocations: 32.75 MB / 2.181 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/6.595, allocations: 0 / 2.181 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0386/6.633, allocations: 19.61 MB / 2.2 GB, free: 176.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005908/6.639, allocations: 0.6874 MB / 2.201 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0381/6.677, allocations: 27.39 MB / 2.227 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007911/6.685, allocations: 4.614 MB / 2.232 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004238/6.69, allocations: 1.985 MB / 2.234 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008495/6.69, allocations: 279.4 kB / 2.234 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.403e-06/6.69, allocations: 0 / 2.234 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.5542/7.245, allocations: 287.1 MB / 2.514 GB, free: 61.88 MB / 0.5606 GB " [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.669481293763965]