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.001422/0.001422, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.5 MB / 245.4 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.0008226/0.000823, allocations: 105.4 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002397, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2236, allocations: 51.3 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.3375, allocations: 96.54 MB / 0.4934 GB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.3378, allocations: 95.92 kB / 0.4935 GB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4439/0.7817, allocations: 124.9 MB / 0.6154 GB, free: 10.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7817, allocations: 0 / 0.6154 GB, free: 10.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004248/0.7822, allocations: 124 kB / 0.6155 GB, free: 10.55 MB / 394.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.02687/0.8091, allocations: 6.831 MB / 0.6222 GB, free: 3.633 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.8091, allocations: 8.031 kB / 0.6222 GB, free: 3.625 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02957/0.8387, allocations: 7.043 MB / 0.6291 GB, free: 12.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01561/0.8543, allocations: 6.63 MB / 0.6355 GB, free: 5.844 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004681/0.8549, allocations: 431.8 kB / 0.636 GB, free: 5.422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002501/0.8574, allocations: 0.5742 MB / 0.6365 GB, free: 4.848 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03379/0.8912, allocations: 14.66 MB / 0.6508 GB, free: 5.012 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002929/0.8915, allocations: 83.41 kB / 0.6509 GB, free: 4.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/0.8929, allocations: 275.8 kB / 0.6512 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001848/0.8948, allocations: 1.443 MB / 0.6526 GB, free: 3.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.9195, allocations: 12.8 MB / 0.6651 GB, free: 6.383 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2507/1.17, allocations: 64.61 MB / 0.7282 GB, free: 39.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01592/1.186, allocations: 7.532 MB / 0.7355 GB, free: 39.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005373/1.192, allocations: 5.193 MB / 0.7406 GB, free: 39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01615/1.208, allocations: 12.9 MB / 0.7532 GB, free: 33.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/1.208, allocations: 70.44 kB / 0.7533 GB, free: 33.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=340): time 5.38e-06/1.208, allocations: 3.156 kB / 0.7533 GB, free: 33.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=604): time 1.563/2.771, allocations: 264.1 MB / 1.011 GB, free: 9.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/2.771, allocations: 276 kB / 1.011 GB, free: 8.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3102/3.081, allocations: 5.326 MB / 1.017 GB, free: 101.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002378/3.083, allocations: 115.6 kB / 1.017 GB, free: 101.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004376/3.088, allocations: 4.005 MB / 1.021 GB, free: 100.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004601/3.093, allocations: 2.115 MB / 1.023 GB, free: 99.03 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002835/3.095, allocations: 188.1 kB / 1.023 GB, free: 99.03 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001129/3.097, allocations: 0.7159 MB / 1.024 GB, free: 98.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02039/3.117, allocations: 8.678 MB / 1.032 GB, free: 98.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02166/3.139, allocations: 12.81 MB / 1.045 GB, free: 93.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03021/3.169, allocations: 22.89 MB / 1.067 GB, free: 81.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001632/3.169, allocations: 39.53 kB / 1.067 GB, free: 81.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.08537/3.255, allocations: 40.35 MB / 1.106 GB, free: 66.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002784/3.255, allocations: 64 kB / 1.106 GB, free: 66.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003177/3.255, allocations: 140 kB / 1.107 GB, free: 66.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05969/3.315, allocations: 21.53 MB / 1.128 GB, free: 51.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004886/3.32, allocations: 1.441 MB / 1.129 GB, free: 50.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4152/3.735, allocations: 144.8 MB / 1.27 GB, free: 61.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/3.747, allocations: 0.7263 MB / 1.271 GB, free: 61.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002728/3.749, allocations: 0.5291 MB / 1.272 GB, free: 61.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * 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 (775): * Single equations (assignments): 768 * 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 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.009245/3.759, allocations: 3.125 MB / 1.275 GB, free: 58.94 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002378/3.761, allocations: 0.587 MB / 1.275 GB, free: 58.61 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07528/3.836, allocations: 36.32 MB / 1.311 GB, free: 31.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.461e-05/3.836, allocations: 60 kB / 1.311 GB, free: 31.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002163/3.837, allocations: 64 kB / 1.311 GB, free: 31.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001395/3.837, allocations: 33.34 kB / 1.311 GB, free: 31.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3882/4.225, allocations: 57.22 MB / 1.367 GB, free: 89.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.49e-05/4.225, allocations: 0 / 1.367 GB, free: 89.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/4.227, allocations: 271.2 kB / 1.367 GB, free: 89.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06147/4.288, allocations: 20.76 MB / 1.387 GB, free: 89.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002124/4.29, allocations: 101.1 kB / 1.387 GB, free: 89.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2575/4.548, allocations: 132.6 MB / 1.517 GB, free: 18.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/4.548, allocations: 3.844 kB / 1.517 GB, free: 18.03 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.332/4.88, allocations: 48.73 MB / 1.564 GB, free: 89.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/4.882, allocations: 0.6144 MB / 1.565 GB, free: 89.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002924/4.885, allocations: 103.3 kB / 1.565 GB, free: 89.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007204/4.892, allocations: 0.4942 MB / 1.566 GB, free: 89.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004027/4.896, allocations: 0.5043 MB / 1.566 GB, free: 89.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001165/4.897, allocations: 141.4 kB / 1.566 GB, free: 89.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005794/4.903, allocations: 3.382 MB / 1.57 GB, free: 89.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/4.903, allocations: 0 / 1.57 GB, free: 89.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01367/4.917, allocations: 3.445 MB / 1.573 GB, free: 89.43 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001509/4.918, allocations: 245.7 kB / 1.573 GB, free: 89.35 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03946/4.958, allocations: 24.52 MB / 1.597 GB, free: 87.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/4.958, allocations: 0 / 1.597 GB, free: 87.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02677/4.984, allocations: 13.8 MB / 1.611 GB, free: 81.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/4.995, allocations: 0.7905 MB / 1.611 GB, free: 80.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04189/5.037, allocations: 27.19 MB / 1.638 GB, free: 61.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008675/5.046, allocations: 5.165 MB / 1.643 GB, free: 57.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/5.047, allocations: 347.7 kB / 1.643 GB, free: 57.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/5.047, allocations: 0 / 1.643 GB, free: 57.29 MB / 490.7 MB Notification: Performance of Templates: time 0.5477/5.595, allocations: 240.2 MB / 1.878 GB, free: 8.688 MB / 0.5105 GB 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/jenkins1/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