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.001309/0.001309, allocations: 111.2 kB / 17.68 MB, free: 5.332 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.001263/0.001263, allocations: 192 kB / 18.62 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.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009804/0.0009805, allocations: 46.59 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09853, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01725/0.1158, allocations: 15.91 MB / 367.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1974/0.3133, allocations: 5.107 MB / 372.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003341/0.3167, allocations: 110.9 kB / 372.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008872/0.3256, allocations: 4.441 MB / 377.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007546/0.3332, allocations: 2.534 MB / 379.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00263/0.3358, allocations: 1.15 MB / 380.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.3473, allocations: 7.981 MB / 388.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006421/0.3537, allocations: 5.314 MB / 394 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004531/0.3583, allocations: 2.46 MB / 396.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00471/0.363, allocations: 3.361 MB / 399.9 MB, free: 156 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.3644, allocations: 0.5079 MB / 400.4 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003554/0.368, allocations: 1.493 MB / 401.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003259/0.3713, allocations: 2.957 MB / 404.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005/0.3763, allocations: 3.346 MB / 408.2 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0136/0.3899, allocations: 10.34 MB / 418.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.3899, allocations: 0 / 418.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.39, allocations: 0 / 418.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003879/0.3904, allocations: 4 kB / 418.5 MB, free: 13.77 MB / 334.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.01957/0.4099, allocations: 7.607 MB / 426.1 MB, free: 6.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.41, allocations: 8.031 kB / 426.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/0.4246, allocations: 3.182 MB / 429.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01203/0.4366, allocations: 4.835 MB / 434.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003692/0.437, allocations: 337.3 kB / 434.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001622/0.4387, allocations: 461.6 kB / 434.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03903/0.4777, allocations: 14.56 MB / 449.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003066/0.4781, allocations: 71.42 kB / 449.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001112/0.4792, allocations: 213.8 kB / 449.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008198/0.4874, allocations: 2.836 MB / 452.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03764/0.5251, allocations: 13.22 MB / 465.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07828/0.6034, allocations: 58.25 MB / 0.5118 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0172/0.6207, allocations: 7.733 MB / 0.5193 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006165/0.6269, allocations: 5.049 MB / 0.5243 GB, free: 5.363 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2061/0.833, allocations: 12.79 MB / 0.5368 GB, free: 142.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/0.8331, allocations: 72.55 kB / 0.5368 GB, free: 142.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 6.372e-06/0.8331, allocations: 0 / 0.5368 GB, free: 142.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.841/2.674, allocations: 411.4 MB / 0.9386 GB, free: 77.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/2.675, allocations: 269.7 kB / 0.9389 GB, free: 76.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006036/2.681, allocations: 5.443 MB / 0.9442 GB, free: 71.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001644/2.682, allocations: 109.7 kB / 0.9443 GB, free: 71.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/2.685, allocations: 3.941 MB / 0.9481 GB, free: 68.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002995/2.688, allocations: 2.013 MB / 0.9501 GB, free: 66.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004003/2.692, allocations: 2.173 MB / 0.9522 GB, free: 64.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.655e-05/2.692, allocations: 305.1 kB / 0.9525 GB, free: 63.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01187/2.704, allocations: 11.06 MB / 0.9633 GB, free: 52.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01428/2.718, allocations: 15.25 MB / 0.9782 GB, free: 35.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02791/2.746, allocations: 27.44 MB / 1.005 GB, free: 6.301 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/2.746, allocations: 40 kB / 1.005 GB, free: 6.262 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5389/3.285, allocations: 141.1 MB / 1.143 GB, free: 43.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.182e-05/3.285, allocations: 69.72 kB / 1.143 GB, free: 43.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/3.285, allocations: 136 kB / 1.143 GB, free: 43.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07653/3.362, allocations: 34.69 MB / 1.177 GB, free: 8.695 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2129/3.575, allocations: 1.562 MB / 1.178 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.478/4.053, allocations: 203.6 MB / 1.377 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0143/4.067, allocations: 1.731 MB / 1.379 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002786/4.07, allocations: 0.533 MB / 1.379 GB, free: 110.1 MB / 462.1 MB 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.007408/4.077, allocations: 3.101 MB / 1.382 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/4.08, allocations: 0.5751 MB / 1.383 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5179/4.597, allocations: 136.7 MB / 1.516 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.021e-05/4.598, allocations: 61.25 kB / 1.517 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001803/4.598, allocations: 58.05 kB / 1.517 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001198/4.598, allocations: 28.89 kB / 1.517 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5522/5.15, allocations: 206 MB / 1.718 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.448e-05/5.15, allocations: 9.406 kB / 1.718 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/5.152, allocations: 335.8 kB / 1.718 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06927/5.221, allocations: 33.41 MB / 1.751 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00175/5.223, allocations: 100 kB / 1.751 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4304/5.653, allocations: 186.2 MB / 1.933 GB, free: 105.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.115e-05/5.653, allocations: 10.72 kB / 1.933 GB, free: 105.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5048/6.158, allocations: 152.5 MB / 2.082 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001608/6.16, allocations: 0.6257 MB / 2.082 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002585/6.162, allocations: 96.88 kB / 2.082 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009236/6.172, allocations: 1.486 MB / 2.084 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004202/6.176, allocations: 0.4935 MB / 2.084 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001256/6.177, allocations: 141.3 kB / 2.084 GB, free: 117.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005101/6.182, allocations: 3.465 MB / 2.088 GB, free: 116.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.6e-07/6.182, allocations: 0 / 2.088 GB, free: 116.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01297/6.195, allocations: 3.855 MB / 2.092 GB, free: 113.6 MB / 478.1 MB 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.001567/6.197, allocations: 250.8 kB / 2.092 GB, free: 113.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05221/6.249, allocations: 33.82 MB / 2.125 GB, free: 80.58 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/6.249, allocations: 0 / 2.125 GB, free: 80.58 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03619/6.285, allocations: 20.54 MB / 2.145 GB, free: 60.05 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007077/6.293, allocations: 0.785 MB / 2.146 GB, free: 59.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04279/6.335, allocations: 27.08 MB / 2.172 GB, free: 32.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01083/6.346, allocations: 5.097 MB / 2.177 GB, free: 27.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007945/6.354, allocations: 2.053 MB / 2.179 GB, free: 25.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/6.356, allocations: 311.4 kB / 2.179 GB, free: 24.73 MB / 478.1 MB Notification: Performance of SimCode: time 1.944e-06/6.356, allocations: 3.938 kB / 2.179 GB, free: 24.73 MB / 478.1 MB Notification: Performance of Templates: time 0.7314/7.087, allocations: 272.8 MB / 2.446 GB, free: 96.53 MB / 494.1 MB 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 -s cvode -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