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.001363/0.001363, allocations: 109 kB / 17.28 MB, free: 6.059 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.001699/0.001699, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.34/1.34, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 42.08 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.45 MB / 350.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2634/0.3647, allocations: 75.33 MB / 425.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04006/0.4048, allocations: 14.84 MB / 440.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02335/0.4282, allocations: 343.1 kB / 440.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01139/0.4397, allocations: 4.276 MB / 445 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.4505, allocations: 2.349 MB / 447.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004153/0.4547, allocations: 1.085 MB / 448.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01448/0.4692, allocations: 8.536 MB / 457 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01178/0.481, allocations: 5.573 MB / 462.6 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006475/0.4876, allocations: 2.519 MB / 465.1 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007308/0.4949, allocations: 3.731 MB / 468.8 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002106/0.4971, allocations: 0.5039 MB / 469.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003821/0.5009, allocations: 1.518 MB / 470.8 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004302/0.5052, allocations: 2.996 MB / 473.8 MB, free: 8.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005544/0.5108, allocations: 3.375 MB / 477.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009832/0.5207, allocations: 8.209 MB / 485.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.5207, allocations: 0 / 485.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5207, allocations: 0 / 485.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003484/0.5211, allocations: 0 / 485.4 MB, free: 13.34 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.01942/0.5405, allocations: 7.609 MB / 493 MB, free: 5.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.5406, allocations: 8.031 kB / 493 MB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/0.5554, allocations: 3.182 MB / 496.2 MB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/0.5659, allocations: 4.716 MB / 0.4892 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.5662, allocations: 337.2 kB / 0.4895 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001816/0.5681, allocations: 471.3 kB / 0.49 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0301/0.5982, allocations: 14.56 MB / 0.5042 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003479/0.5986, allocations: 83.25 kB / 0.5043 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/0.5998, allocations: 211.8 kB / 0.5045 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005752/0.6055, allocations: 2.832 MB / 0.5072 GB, free: 10.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02824/0.6338, allocations: 13.22 MB / 0.5201 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2568/0.8906, allocations: 58.5 MB / 0.5773 GB, free: 111.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/0.9082, allocations: 7.738 MB / 0.5848 GB, free: 107.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005822/0.914, allocations: 5.052 MB / 0.5898 GB, free: 105.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02122/0.9353, allocations: 12.8 MB / 0.6023 GB, free: 95.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.9354, allocations: 79.62 kB / 0.6023 GB, free: 95.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.373e-06/0.9354, allocations: 0 / 0.6023 GB, free: 95.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.943/2.879, allocations: 411.4 MB / 1.004 GB, free: 18.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/2.879, allocations: 265.6 kB / 1.004 GB, free: 17.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008159/2.887, allocations: 5.452 MB / 1.01 GB, free: 12.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002834/2.89, allocations: 113.7 kB / 1.01 GB, free: 12.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002775/2.893, allocations: 3.936 MB / 1.014 GB, free: 8.242 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003782/2.897, allocations: 2.012 MB / 1.016 GB, free: 6.246 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2514/3.148, allocations: 2.176 MB / 1.018 GB, free: 134.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.013e-05/3.148, allocations: 305.4 kB / 1.018 GB, free: 134 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01724/3.165, allocations: 11.07 MB / 1.029 GB, free: 130.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01798/3.183, allocations: 15.24 MB / 1.044 GB, free: 121 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03068/3.214, allocations: 27.44 MB / 1.07 GB, free: 102 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/3.214, allocations: 40 kB / 1.071 GB, free: 102 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.545/3.759, allocations: 141.1 MB / 1.208 GB, free: 130.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/3.759, allocations: 69.19 kB / 1.208 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/3.759, allocations: 138.7 kB / 1.208 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07662/3.836, allocations: 34.72 MB / 1.242 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005241/3.841, allocations: 1.577 MB / 1.244 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5346/4.376, allocations: 203.6 MB / 1.443 GB, free: 72.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01382/4.39, allocations: 1.716 MB / 1.444 GB, free: 71.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002906/4.393, allocations: 0.5371 MB / 1.445 GB, free: 70.54 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.007525/4.4, allocations: 3.092 MB / 1.448 GB, free: 67.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002142/4.402, allocations: 0.5812 MB / 1.449 GB, free: 67.37 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5071/4.91, allocations: 136.7 MB / 1.582 GB, free: 96.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.28e-05/4.91, allocations: 56 kB / 1.582 GB, free: 96.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001694/4.91, allocations: 60.69 kB / 1.582 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001285/4.91, allocations: 30.45 kB / 1.582 GB, free: 96.13 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5751/5.485, allocations: 206.2 MB / 1.784 GB, free: 89.28 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-05/5.485, allocations: 4 kB / 1.784 GB, free: 89.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/5.487, allocations: 339 kB / 1.784 GB, free: 88.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06761/5.554, allocations: 33.45 MB / 1.817 GB, free: 57.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001798/5.556, allocations: 119.1 kB / 1.817 GB, free: 57.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.457/6.013, allocations: 186.2 MB / 1.998 GB, free: 42.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/6.013, allocations: 9.625 kB / 1.998 GB, free: 42.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5134/6.527, allocations: 152.5 MB / 2.147 GB, free: 57.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00209/6.529, allocations: 0.6296 MB / 2.148 GB, free: 57.49 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002969/6.532, allocations: 95.98 kB / 2.148 GB, free: 57.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009093/6.541, allocations: 1.487 MB / 2.15 GB, free: 55.91 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004177/6.545, allocations: 499.1 kB / 2.15 GB, free: 55.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001115/6.546, allocations: 144 kB / 2.15 GB, free: 55.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004904/6.551, allocations: 3.467 MB / 2.154 GB, free: 51.84 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.71e-07/6.551, allocations: 2.406 kB / 2.154 GB, free: 51.84 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01387/6.565, allocations: 3.866 MB / 2.157 GB, free: 47.99 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.001766/6.567, allocations: 240.9 kB / 2.158 GB, free: 47.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2596/6.826, allocations: 38.86 MB / 2.196 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/6.827, allocations: 1.125 kB / 2.196 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04008/6.867, allocations: 20.54 MB / 2.216 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007885/6.875, allocations: 0.7825 MB / 2.216 GB, free: 139 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04577/6.92, allocations: 30.99 MB / 2.247 GB, free: 127.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009892/6.93, allocations: 5.061 MB / 2.252 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/6.932, allocations: 355.2 kB / 2.252 GB, free: 123.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.353e-06/6.932, allocations: 4 kB / 2.252 GB, free: 123.2 MB / 478.1 MB Notification: Performance of Templates: time 0.4884/7.42, allocations: 255.6 MB / 2.502 GB, free: 22.66 MB / 478.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 -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