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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 108.3 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 191 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 55.91 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3439, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01749/0.3615, allocations: 15.92 MB / 417.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.375, allocations: 5.108 MB / 422.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003754/0.3788, allocations: 115.6 kB / 422.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008403/0.3872, allocations: 4.439 MB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007334/0.3946, allocations: 2.54 MB / 429.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002676/0.3973, allocations: 1.147 MB / 430.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.4079, allocations: 7.968 MB / 438.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006069/0.414, allocations: 5.303 MB / 443.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004501/0.4186, allocations: 2.469 MB / 446.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00507/0.4237, allocations: 3.372 MB / 449.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001807/0.4255, allocations: 0.5039 MB / 450.3 MB, free: 7.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003967/0.4295, allocations: 1.502 MB / 451.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00483/0.4343, allocations: 2.993 MB / 454.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007404/0.4418, allocations: 3.348 MB / 458.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.455, allocations: 10.35 MB / 468.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4551, allocations: 0 / 468.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4551, allocations: 0 / 468.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004144/0.4555, allocations: 8 kB / 468.5 MB, free: 5.516 MB / 382.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.02033/0.4758, allocations: 7.601 MB / 476.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.4759, allocations: 12.02 kB / 476.1 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01415/0.4901, allocations: 3.182 MB / 479.3 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.5009, allocations: 4.829 MB / 484.1 MB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003385/0.5013, allocations: 333.1 kB / 484.4 MB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001939/0.5032, allocations: 471.5 kB / 484.9 MB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02917/0.5324, allocations: 14.56 MB / 499.5 MB, free: 5.434 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000347/0.5328, allocations: 79.27 kB / 499.5 MB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001685/0.5345, allocations: 215.8 kB / 499.8 MB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005338/0.5398, allocations: 2.828 MB / 0.4908 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02719/0.5671, allocations: 13.23 MB / 0.5037 GB, free: 5.055 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3764/0.9434, allocations: 58.24 MB / 0.5606 GB, free: 93.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01632/0.9598, allocations: 7.732 MB / 0.5682 GB, free: 91.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005323/0.9652, allocations: 5.048 MB / 0.5731 GB, free: 89.73 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/0.9817, allocations: 12.81 MB / 0.5856 GB, free: 81.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.9818, allocations: 63.98 kB / 0.5856 GB, free: 81.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 4.96e-06/0.9818, allocations: 0 / 0.5856 GB, free: 81.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.016/2.998, allocations: 411.4 MB / 0.9874 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/2.998, allocations: 265.7 kB / 0.9877 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006618/3.005, allocations: 5.454 MB / 0.993 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001709/3.006, allocations: 113.7 kB / 0.9931 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002047/3.008, allocations: 3.934 MB / 0.997 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00237/3.011, allocations: 2.009 MB / 0.9989 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003785/3.015, allocations: 2.186 MB / 1.001 GB, free: 152 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.253e-05/3.015, allocations: 301.1 kB / 1.001 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01128/3.026, allocations: 11.06 MB / 1.012 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01305/3.039, allocations: 15.24 MB / 1.027 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.026/3.065, allocations: 27.45 MB / 1.054 GB, free: 94.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.815e-05/3.065, allocations: 36 kB / 1.054 GB, free: 94.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5153/3.58, allocations: 141.1 MB / 1.192 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.008e-05/3.581, allocations: 64 kB / 1.192 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/3.581, allocations: 136 kB / 1.192 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07087/3.652, allocations: 34.68 MB / 1.226 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/3.656, allocations: 1.571 MB / 1.227 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4429/4.099, allocations: 203.6 MB / 1.426 GB, free: 97.74 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01229/4.111, allocations: 1.717 MB / 1.428 GB, free: 96.32 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002042/4.113, allocations: 0.5388 MB / 1.428 GB, free: 95.78 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.005266/4.119, allocations: 3.096 MB / 1.431 GB, free: 92.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001641/4.12, allocations: 0.5728 MB / 1.432 GB, free: 92.52 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5199/4.64, allocations: 136.7 MB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.473e-05/4.64, allocations: 60.22 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001395/4.64, allocations: 56.5 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/4.641, allocations: 31.86 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5657/5.206, allocations: 205.9 MB / 1.767 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.393e-05/5.206, allocations: 15.44 kB / 1.767 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/5.208, allocations: 327.2 kB / 1.767 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06698/5.275, allocations: 33.42 MB / 1.8 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0017/5.277, allocations: 104 kB / 1.8 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.461/5.738, allocations: 186.2 MB / 1.981 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/5.738, allocations: 11 kB / 1.981 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5429/6.281, allocations: 152.5 MB / 2.13 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/6.283, allocations: 0.6238 MB / 2.131 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003097/6.286, allocations: 99.52 kB / 2.131 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009489/6.295, allocations: 1.481 MB / 2.133 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00425/6.299, allocations: 0.4926 MB / 2.133 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001396/6.301, allocations: 145.1 kB / 2.133 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005013/6.306, allocations: 3.465 MB / 2.137 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.3e-07/6.306, allocations: 0 / 2.137 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01358/6.319, allocations: 3.854 MB / 2.14 GB, free: 146.2 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.001837/6.321, allocations: 251.9 kB / 2.141 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05238/6.374, allocations: 33.81 MB / 2.174 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.51e-05/6.374, allocations: 4 kB / 2.174 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03654/6.41, allocations: 20.55 MB / 2.194 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006538/6.417, allocations: 0.7883 MB / 2.194 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03813/6.455, allocations: 27.7 MB / 2.222 GB, free: 76.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006847/6.462, allocations: 5.062 MB / 2.226 GB, free: 71.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/6.463, allocations: 350.7 kB / 2.227 GB, free: 71.18 MB / 0.5294 GB Notification: Performance of SimCode: time 6.42e-07/6.463, allocations: 0 / 2.227 GB, free: 71.18 MB / 0.5294 GB Notification: Performance of Templates: time 0.49/6.953, allocations: 257.3 MB / 2.478 GB, free: 10.73 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (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) 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) Reference file matches