Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00076/0.0007602, allocations: 100.8 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002683, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.205, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.04967/0.2548, allocations: 68.35 MB / 475.8 MB, free: 7.312 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.2865, allocations: 14.31 MB / 490.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0136/0.3002, allocations: 335.1 kB / 490.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01029/0.3105, allocations: 3.553 MB / 494 MB, free: 5.066 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02497/0.3355, allocations: 10.44 MB / 0.4927 GB, free: 10.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004185/0.3397, allocations: 1.01 MB / 0.4936 GB, free: 9.574 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2897/0.6294, allocations: 91.67 MB / 0.5832 GB, free: 3.117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009614/0.6391, allocations: 6.58 MB / 0.5896 GB, free: 14.49 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003909/0.643, allocations: 2.011 MB / 0.5916 GB, free: 13.14 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00443/0.6475, allocations: 3.15 MB / 0.5946 GB, free: 10.9 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009928/0.6485, allocations: 216 kB / 0.5948 GB, free: 10.69 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.6511, allocations: 1.09 MB / 0.5959 GB, free: 9.805 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002495/0.6536, allocations: 2.602 MB / 0.5984 GB, free: 7.914 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.6552, allocations: 1.21 MB / 0.5996 GB, free: 7.48 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00949/0.6647, allocations: 7.93 MB / 0.6074 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.6647, allocations: 3.438 kB / 0.6074 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.6648, allocations: 1.531 kB / 0.6074 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003574/0.6651, allocations: 4 kB / 0.6074 GB, free: 0.6055 MB / 426.7 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.01509/0.6802, allocations: 6.445 MB / 0.6137 GB, free: 10.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.6803, allocations: 9.562 kB / 0.6137 GB, free: 10.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0142/0.6945, allocations: 3.355 MB / 0.617 GB, free: 7.414 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009303/0.7038, allocations: 4.55 MB / 0.6214 GB, free: 4.098 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.7041, allocations: 339.6 kB / 0.6217 GB, free: 3.914 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.7052, allocations: 469.4 kB / 0.6222 GB, free: 3.609 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02369/0.7289, allocations: 14.55 MB / 0.6364 GB, free: 8.258 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002054/0.7291, allocations: 73.61 kB / 0.6365 GB, free: 8.215 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005859/0.7297, allocations: 208.9 kB / 0.6367 GB, free: 8.156 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005071/0.7348, allocations: 2.835 MB / 0.6394 GB, free: 5.777 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/0.7582, allocations: 13.19 MB / 0.6523 GB, free: 12.49 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.279/1.037, allocations: 58.48 MB / 0.7094 GB, free: 160.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0158/1.053, allocations: 7.722 MB / 0.7169 GB, free: 158.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005454/1.059, allocations: 5.045 MB / 0.7219 GB, free: 156.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0169/1.076, allocations: 12.82 MB / 0.7344 GB, free: 146.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/1.076, allocations: 64.7 kB / 0.7345 GB, free: 146.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=326): time 5.29e-06/1.076, allocations: 0 / 0.7345 GB, free: 146.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=572): time 1.828/2.904, allocations: 407.4 MB / 1.132 GB, free: 132.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.377e-05/2.904, allocations: 273.5 kB / 1.133 GB, free: 131.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005843/2.91, allocations: 5.41 MB / 1.138 GB, free: 126.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001493/2.912, allocations: 115 kB / 1.138 GB, free: 126.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/2.913, allocations: 3.939 MB / 1.142 GB, free: 123.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001953/2.915, allocations: 2.009 MB / 1.144 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000859/2.916, allocations: 192 kB / 1.144 GB, free: 121 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003131/2.916, allocations: 0.7229 MB / 1.145 GB, free: 120.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01089/2.927, allocations: 11.02 MB / 1.155 GB, free: 109.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01202/2.939, allocations: 15.21 MB / 1.17 GB, free: 92.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/2.952, allocations: 12.89 MB / 1.183 GB, free: 79.42 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.267e-05/2.952, allocations: 43.75 kB / 1.183 GB, free: 79.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4927/3.445, allocations: 141 MB / 1.321 GB, free: 115.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.277e-05/3.445, allocations: 64.62 kB / 1.321 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.747e-05/3.445, allocations: 144 kB / 1.321 GB, free: 115 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07099/3.516, allocations: 34.81 MB / 1.355 GB, free: 80.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004462/3.521, allocations: 1.567 MB / 1.356 GB, free: 79.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4137/3.934, allocations: 190.5 MB / 1.542 GB, free: 67.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01251/3.947, allocations: 1.726 MB / 1.544 GB, free: 65.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001954/3.949, allocations: 0.5388 MB / 1.545 GB, free: 64.86 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.005185/3.954, allocations: 3.097 MB / 1.548 GB, free: 61.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/3.955, allocations: 0.5699 MB / 1.548 GB, free: 61.42 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4603/4.416, allocations: 136.7 MB / 1.682 GB, free: 101 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.445e-05/4.416, allocations: 60 kB / 1.682 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001451/4.416, allocations: 60.81 kB / 1.682 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/4.416, allocations: 33.92 kB / 1.682 GB, free: 100.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5412/4.957, allocations: 206.2 MB / 1.883 GB, free: 82.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.026e-05/4.957, allocations: 4 kB / 1.883 GB, free: 82.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/4.959, allocations: 329.6 kB / 1.883 GB, free: 82.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06772/5.027, allocations: 33.92 MB / 1.917 GB, free: 50.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001521/5.028, allocations: 106.2 kB / 1.917 GB, free: 50.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3869/5.415, allocations: 173.5 MB / 2.086 GB, free: 49.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/5.415, allocations: 4.172 kB / 2.086 GB, free: 49.49 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.497/5.912, allocations: 152.5 MB / 2.235 GB, free: 68.03 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/5.914, allocations: 0.6354 MB / 2.236 GB, free: 67.69 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002036/5.916, allocations: 102 kB / 2.236 GB, free: 67.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008154/5.924, allocations: 1.491 MB / 2.237 GB, free: 66.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002593/5.927, allocations: 498.4 kB / 2.238 GB, free: 65.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007435/5.927, allocations: 144.7 kB / 2.238 GB, free: 65.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004389/5.932, allocations: 3.438 MB / 2.241 GB, free: 62.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 3e-07/5.932, allocations: 0 / 2.241 GB, free: 62.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01255/5.944, allocations: 3.854 MB / 2.245 GB, free: 58.22 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.001661/5.946, allocations: 246.9 kB / 2.245 GB, free: 57.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.05028/5.996, allocations: 33.67 MB / 2.278 GB, free: 24.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/5.996, allocations: 3.469 kB / 2.278 GB, free: 24.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2172/6.213, allocations: 20.52 MB / 2.298 GB, free: 149.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005538/6.219, allocations: 0.751 MB / 2.299 GB, free: 149.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03106/6.25, allocations: 30.27 MB / 2.328 GB, free: 142.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004306/6.255, allocations: 5.065 MB / 2.333 GB, free: 139.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/6.256, allocations: 353.2 kB / 2.334 GB, free: 138.9 MB / 490.7 MB Notification: Performance of SimCode: time 9.22e-07/6.256, allocations: 0 / 2.334 GB, free: 138.9 MB / 490.7 MB Notification: Performance of Templates: time 0.4066/6.662, allocations: 254.8 MB / 2.583 GB, free: 44.35 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches