Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001714/0.001714, allocations: 117.6 kB / 17.83 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 203.9 kB / 18.79 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.486/1.486, allocations: 230.4 MB / 250 MB, free: 9.023 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 71.81 kB / 367.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.245, allocations: 53.31 MB / 420.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01874/0.2637, allocations: 15.93 MB / 436.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01084/0.2746, allocations: 5.143 MB / 441.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.2767, allocations: 111.6 kB / 441.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008047/0.2847, allocations: 4.477 MB / 446.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006142/0.2908, allocations: 2.572 MB / 448.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002223/0.2931, allocations: 1.151 MB / 450 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01101/0.3041, allocations: 8.101 MB / 458.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005902/0.31, allocations: 4.538 MB / 462.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003839/0.3138, allocations: 2.473 MB / 465.2 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005006/0.3188, allocations: 3.614 MB / 468.8 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001022/0.3198, allocations: 0.5039 MB / 469.3 MB, free: 7.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00271/0.3226, allocations: 1.533 MB / 470.8 MB, free: 5.926 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002963/0.3255, allocations: 3.031 MB / 473.8 MB, free: 2.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003797/0.3293, allocations: 3.325 MB / 477.2 MB, free: 15.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.3424, allocations: 10.34 MB / 487.5 MB, free: 5.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.3425, allocations: 7.875 kB / 487.5 MB, free: 5.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3425, allocations: 0 / 487.5 MB, free: 5.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003635/0.3428, allocations: 0 / 487.5 MB, free: 5.148 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.01862/0.3614, allocations: 7.826 MB / 495.3 MB, free: 13.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3615, allocations: 12.03 kB / 495.4 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01458/0.3761, allocations: 3.335 MB / 498.7 MB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.3868, allocations: 4.764 MB / 0.4917 GB, free: 5.027 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003452/0.3871, allocations: 333.1 kB / 0.492 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00141/0.3885, allocations: 475.6 kB / 0.4924 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02771/0.4162, allocations: 14.56 MB / 0.5066 GB, free: 4.742 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002098/0.4165, allocations: 75.47 kB / 0.5067 GB, free: 4.668 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005639/0.417, allocations: 207.8 kB / 0.5069 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005554/0.4226, allocations: 2.832 MB / 0.5097 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02721/0.4498, allocations: 13.22 MB / 0.5226 GB, free: 4.375 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3048/0.7546, allocations: 58.36 MB / 0.5796 GB, free: 73.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/0.7701, allocations: 7.384 MB / 0.5868 GB, free: 71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004902/0.775, allocations: 4.542 MB / 0.5912 GB, free: 68.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01543/0.7904, allocations: 12.82 MB / 0.6037 GB, free: 58.44 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.7905, allocations: 72.14 kB / 0.6038 GB, free: 58.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.35e-06/0.7905, allocations: 0 / 0.6038 GB, free: 58.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.191/2.982, allocations: 411.6 MB / 1.006 GB, free: 163.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/2.982, allocations: 269.6 kB / 1.006 GB, free: 162.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007369/2.989, allocations: 5.447 MB / 1.011 GB, free: 157.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002589/2.992, allocations: 113.7 kB / 1.011 GB, free: 157.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003212/2.995, allocations: 4.086 MB / 1.015 GB, free: 154.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003537/2.999, allocations: 2.107 MB / 1.017 GB, free: 152.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004114/3.003, allocations: 2.186 MB / 1.02 GB, free: 150.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.321e-05/3.003, allocations: 309.1 kB / 1.02 GB, free: 150 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01378/3.017, allocations: 11.06 MB / 1.031 GB, free: 138.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0163/3.033, allocations: 15.24 MB / 1.046 GB, free: 121.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02864/3.062, allocations: 27.45 MB / 1.072 GB, free: 92.57 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/3.062, allocations: 44 kB / 1.072 GB, free: 92.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5635/3.625, allocations: 140.8 MB / 1.21 GB, free: 149.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.171e-05/3.625, allocations: 64 kB / 1.21 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/3.625, allocations: 137.2 kB / 1.21 GB, free: 149.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07702/3.702, allocations: 34.7 MB / 1.244 GB, free: 114.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00504/3.708, allocations: 1.572 MB / 1.246 GB, free: 113.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5244/4.232, allocations: 203.7 MB / 1.444 GB, free: 112.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01506/4.247, allocations: 1.718 MB / 1.446 GB, free: 111.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003719/4.251, allocations: 0.5401 MB / 1.447 GB, free: 110.6 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.006544/4.257, allocations: 3.099 MB / 1.45 GB, free: 108.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001946/4.259, allocations: 0.603 MB / 1.45 GB, free: 107.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5645/4.824, allocations: 136.4 MB / 1.584 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.129e-05/4.824, allocations: 58.72 kB / 1.584 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001687/4.824, allocations: 60.69 kB / 1.584 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001287/4.824, allocations: 32 kB / 1.584 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6153/5.439, allocations: 205.7 MB / 1.784 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.166e-05/5.44, allocations: 8.906 kB / 1.785 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/5.441, allocations: 331.5 kB / 1.785 GB, free: 166.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06963/5.511, allocations: 33.44 MB / 1.817 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001575/5.512, allocations: 99.22 kB / 1.818 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4885/6.001, allocations: 186.3 MB / 2 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/6.001, allocations: 11.59 kB / 2 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3197/6.32, allocations: 152.3 MB / 2.148 GB, free: 40.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/6.322, allocations: 0.6537 MB / 2.149 GB, free: 40.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002147/6.324, allocations: 104 kB / 2.149 GB, free: 39.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008193/6.332, allocations: 1.482 MB / 2.15 GB, free: 38.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003665/6.336, allocations: 498.5 kB / 2.151 GB, free: 37.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008015/6.337, allocations: 144 kB / 2.151 GB, free: 37.85 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004153/6.341, allocations: 3.469 MB / 2.154 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/6.341, allocations: 0 / 2.154 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0112/6.352, allocations: 3.845 MB / 2.158 GB, free: 30.57 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.001169/6.353, allocations: 240.6 kB / 2.158 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2772/6.631, allocations: 32.75 MB / 2.19 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/6.631, allocations: 0 / 2.19 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.03608/6.667, allocations: 19.59 MB / 2.21 GB, free: 176.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00686/6.674, allocations: 0.7823 MB / 2.21 GB, free: 176.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03646/6.71, allocations: 27.31 MB / 2.237 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00617/6.716, allocations: 5.096 MB / 2.242 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004217/6.72, allocations: 2.052 MB / 2.244 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008044/6.721, allocations: 306.6 kB / 2.244 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.292e-06/6.721, allocations: 0 / 2.244 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.5971/7.318, allocations: 278.5 MB / 2.516 GB, free: 60.95 MB / 0.5606 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches