Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008489/0.0008489, allocations: 98.84 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002443/0.0002443, allocations: 4 kB / 357.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1972, allocations: 51.49 MB / 409.4 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1045/0.3018, allocations: 96.52 MB / 0.4941 GB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.302, allocations: 91.95 kB / 0.4942 GB, free: 9.945 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4425/0.7445, allocations: 128.6 MB / 0.6197 GB, free: 5.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.7446, allocations: 4 kB / 0.6197 GB, free: 5.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002549/0.7448, allocations: 123.9 kB / 0.6199 GB, free: 5.219 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.01995/0.7648, allocations: 7.21 MB / 0.6269 GB, free: 13.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.7649, allocations: 11.97 kB / 0.6269 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03482/0.7997, allocations: 9.547 MB / 0.6362 GB, free: 4.344 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01967/0.8194, allocations: 7.376 MB / 0.6434 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004999/0.8199, allocations: 435.4 kB / 0.6439 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003056/0.823, allocations: 0.5778 MB / 0.6444 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0308/0.8538, allocations: 14.81 MB / 0.6589 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003013/0.8542, allocations: 91.16 kB / 0.659 GB, free: 11.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00158/0.8557, allocations: 271.9 kB / 0.6592 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002005/0.8578, allocations: 1.447 MB / 0.6606 GB, free: 10.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2192/1.077, allocations: 12.99 MB / 0.6733 GB, free: 74 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06448/1.142, allocations: 64.64 MB / 0.7365 GB, free: 40.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01585/1.157, allocations: 7.879 MB / 0.7442 GB, free: 37.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/1.173, allocations: 12.94 MB / 0.7568 GB, free: 31.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/1.173, allocations: 75.17 kB / 0.7569 GB, free: 31.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=340): time 5.621e-06/1.173, allocations: 0 / 0.7569 GB, free: 31.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=604): time 1.675/2.848, allocations: 266 MB / 1.017 GB, free: 95.53 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.011e-05/2.848, allocations: 266 kB / 1.017 GB, free: 95.27 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006167/2.854, allocations: 4.733 MB / 1.021 GB, free: 95 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001482/2.855, allocations: 119.7 kB / 1.022 GB, free: 94.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/2.858, allocations: 4.001 MB / 1.026 GB, free: 93.99 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002398/2.86, allocations: 2.11 MB / 1.028 GB, free: 92.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007986/2.861, allocations: 190.3 kB / 1.028 GB, free: 92.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003903/2.861, allocations: 0.7114 MB / 1.028 GB, free: 92.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01072/2.872, allocations: 8.676 MB / 1.037 GB, free: 92.34 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01276/2.885, allocations: 12.78 MB / 1.049 GB, free: 87.27 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.898, allocations: 10.58 MB / 1.06 GB, free: 83.87 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.011e-05/2.898, allocations: 35.91 kB / 1.06 GB, free: 83.87 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.07973/2.978, allocations: 40.34 MB / 1.099 GB, free: 71.83 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/2.978, allocations: 64.88 kB / 1.099 GB, free: 71.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001117/2.978, allocations: 136 kB / 1.099 GB, free: 71.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05694/3.035, allocations: 21.55 MB / 1.12 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004559/3.039, allocations: 1.439 MB / 1.122 GB, free: 60.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3909/3.43, allocations: 151.1 MB / 1.269 GB, free: 61.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01068/3.441, allocations: 0.7264 MB / 1.27 GB, free: 60.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/3.443, allocations: 0.5266 MB / 1.271 GB, free: 60.82 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.006806/3.45, allocations: 3.115 MB / 1.274 GB, free: 59.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/3.452, allocations: 0.5901 MB / 1.274 GB, free: 59.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07959/3.531, allocations: 36.3 MB / 1.31 GB, free: 32.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.455e-05/3.531, allocations: 65.39 kB / 1.31 GB, free: 32.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001423/3.532, allocations: 64 kB / 1.31 GB, free: 32.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001151/3.532, allocations: 27.19 kB / 1.31 GB, free: 32.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3186/3.85, allocations: 57.18 MB / 1.366 GB, free: 89.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.967e-05/3.85, allocations: 6.562 kB / 1.366 GB, free: 89.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/3.852, allocations: 269.3 kB / 1.366 GB, free: 89.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05433/3.906, allocations: 20.75 MB / 1.386 GB, free: 89.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001521/3.908, allocations: 102.5 kB / 1.386 GB, free: 89.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1635/4.071, allocations: 138.9 MB / 1.522 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/4.071, allocations: 7.953 kB / 1.522 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3022/4.373, allocations: 48.79 MB / 1.57 GB, free: 91.24 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/4.375, allocations: 0.6137 MB / 1.57 GB, free: 91.06 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001623/4.377, allocations: 95.16 kB / 1.57 GB, free: 91.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005353/4.382, allocations: 0.5013 MB / 1.571 GB, free: 91.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002521/4.385, allocations: 0.4977 MB / 1.571 GB, free: 91.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006805/4.385, allocations: 145.4 kB / 1.571 GB, free: 91.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004261/4.39, allocations: 3.383 MB / 1.575 GB, free: 90.87 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.31e-07/4.39, allocations: 0 / 1.575 GB, free: 90.87 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01052/4.4, allocations: 3.444 MB / 1.578 GB, free: 90.87 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.0009494/4.401, allocations: 246.4 kB / 1.578 GB, free: 90.78 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03286/4.434, allocations: 24.53 MB / 1.602 GB, free: 87.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/4.434, allocations: 3.969 kB / 1.602 GB, free: 87.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02048/4.454, allocations: 13.8 MB / 1.616 GB, free: 81.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004375/4.459, allocations: 0.7111 MB / 1.616 GB, free: 81.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03578/4.495, allocations: 26.46 MB / 1.642 GB, free: 59.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004934/4.5, allocations: 5.294 MB / 1.647 GB, free: 55.25 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004755/4.504, allocations: 2.086 MB / 1.649 GB, free: 54.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000678/4.505, allocations: 297.8 kB / 1.65 GB, free: 53.75 MB / 490.7 MB Notification: Performance of SimCode: time 9.22e-07/4.505, allocations: 11.17 kB / 1.65 GB, free: 53.75 MB / 490.7 MB Notification: Performance of Templates: time 0.4613/4.966, allocations: 223.3 MB / 1.868 GB, free: 8.551 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches