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.001566/0.001566, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.002018/0.002018, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2924, allocations: 49.43 MB / 401.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01532/0.3078, allocations: 15.93 MB / 417.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.3203, allocations: 5.101 MB / 422.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004256/0.3246, allocations: 115.6 kB / 422.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008432/0.3331, allocations: 4.442 MB / 427 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006931/0.3401, allocations: 2.528 MB / 429.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.343, allocations: 1.154 MB / 430.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01127/0.3543, allocations: 7.966 MB / 438.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008072/0.3624, allocations: 5.307 MB / 444 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005131/0.3676, allocations: 2.465 MB / 446.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005983/0.3736, allocations: 3.372 MB / 449.8 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002307/0.376, allocations: 0.5039 MB / 450.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004457/0.3804, allocations: 1.506 MB / 451.8 MB, free: 6.418 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004239/0.3847, allocations: 2.989 MB / 454.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006273/0.391, allocations: 3.348 MB / 458.1 MB, free: 56 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.4048, allocations: 10.36 MB / 468.5 MB, free: 5.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4049, allocations: 0 / 468.5 MB, free: 5.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4049, allocations: 0 / 468.5 MB, free: 5.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003916/0.4053, allocations: 0 / 468.5 MB, free: 5.664 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.02098/0.4263, allocations: 7.609 MB / 476.1 MB, free: 13.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.4263, allocations: 8.031 kB / 476.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01599/0.4423, allocations: 3.182 MB / 479.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01085/0.4532, allocations: 4.828 MB / 484.1 MB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003581/0.4536, allocations: 345.1 kB / 484.5 MB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001942/0.4556, allocations: 463.6 kB / 484.9 MB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03091/0.4865, allocations: 14.56 MB / 499.5 MB, free: 5.566 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003363/0.4869, allocations: 71.34 kB / 499.5 MB, free: 5.496 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001728/0.4886, allocations: 211.8 kB / 499.8 MB, free: 5.289 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005841/0.4945, allocations: 2.836 MB / 0.4908 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02725/0.5218, allocations: 13.23 MB / 0.5037 GB, free: 5.191 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3455/0.8674, allocations: 58.24 MB / 0.5606 GB, free: 93.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01666/0.8841, allocations: 7.733 MB / 0.5682 GB, free: 91.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004953/0.8891, allocations: 5.042 MB / 0.5731 GB, free: 89.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0173/0.9064, allocations: 12.81 MB / 0.5856 GB, free: 81.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.9065, allocations: 75.92 kB / 0.5857 GB, free: 81.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 5.24e-06/0.9065, allocations: 0 / 0.5857 GB, free: 81.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.109/3.015, allocations: 411.4 MB / 0.9874 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.809e-05/3.015, allocations: 265.6 kB / 0.9877 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006959/3.022, allocations: 5.451 MB / 0.993 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002083/3.025, allocations: 109.7 kB / 0.9931 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002174/3.027, allocations: 3.937 MB / 0.997 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002885/3.03, allocations: 2.019 MB / 0.9989 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004201/3.034, allocations: 2.182 MB / 1.001 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.203e-05/3.034, allocations: 301.1 kB / 1.001 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01305/3.047, allocations: 11.06 MB / 1.012 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01623/3.063, allocations: 15.24 MB / 1.027 GB, free: 124.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03113/3.094, allocations: 27.45 MB / 1.054 GB, free: 94.77 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001847/3.095, allocations: 40 kB / 1.054 GB, free: 94.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6306/3.725, allocations: 141.1 MB / 1.192 GB, free: 142 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.274e-05/3.725, allocations: 67.91 kB / 1.192 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/3.726, allocations: 136 kB / 1.192 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07434/3.8, allocations: 34.68 MB / 1.226 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/3.805, allocations: 1.57 MB / 1.227 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5435/4.349, allocations: 203.6 MB / 1.426 GB, free: 98.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01355/4.362, allocations: 1.718 MB / 1.428 GB, free: 96.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003178/4.365, allocations: 0.5348 MB / 1.428 GB, free: 96.12 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.008849/4.374, allocations: 3.097 MB / 1.431 GB, free: 93.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002368/4.377, allocations: 0.5759 MB / 1.432 GB, free: 92.83 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.579/4.956, allocations: 136.7 MB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.135e-05/4.956, allocations: 57.28 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001497/4.956, allocations: 58.62 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001139/4.956, allocations: 23.91 kB / 1.565 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.595/5.551, allocations: 205.9 MB / 1.767 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.814e-05/5.551, allocations: 7.375 kB / 1.767 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/5.553, allocations: 335.5 kB / 1.767 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07002/5.623, allocations: 33.41 MB / 1.8 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002038/5.625, allocations: 108 kB / 1.8 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5114/6.136, allocations: 186.2 MB / 1.981 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.497e-06/6.136, allocations: 4 kB / 1.981 GB, free: 122.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5661/6.702, allocations: 152.6 MB / 2.13 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/6.704, allocations: 0.6207 MB / 2.131 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00236/6.706, allocations: 97.38 kB / 2.131 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008954/6.715, allocations: 1.485 MB / 2.133 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003802/6.719, allocations: 0.494 MB / 2.133 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001051/6.72, allocations: 141.4 kB / 2.133 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004617/6.725, allocations: 3.467 MB / 2.137 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/6.725, allocations: 0 / 2.137 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01398/6.739, allocations: 3.858 MB / 2.14 GB, free: 146.1 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.002088/6.741, allocations: 246.2 kB / 2.141 GB, free: 146 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.05521/6.796, allocations: 33.81 MB / 2.174 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/6.796, allocations: 0 / 2.174 GB, free: 125 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.03879/6.835, allocations: 20.55 MB / 2.194 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008889/6.844, allocations: 0.7823 MB / 2.194 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04224/6.886, allocations: 27.7 MB / 2.221 GB, free: 76.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008063/6.894, allocations: 5.058 MB / 2.226 GB, free: 71.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/6.896, allocations: 355.1 kB / 2.227 GB, free: 71.39 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/6.896, allocations: 0 / 2.227 GB, free: 71.39 MB / 0.5294 GB Notification: Performance of Templates: time 0.542/7.438, allocations: 256.4 MB / 2.477 GB, free: 11.52 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