Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009465/0.0009466, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007578/0.0007575, allocations: 83.53 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003082/0.0003082, allocations: 8 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2259, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1059/0.3319, allocations: 94.5 MB / 470.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.3322, allocations: 95.95 kB / 470.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4172/0.7494, allocations: 121.3 MB / 0.5778 GB, free: 37.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.7494, allocations: 0 / 0.5778 GB, free: 37.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003046/0.7498, allocations: 120 kB / 0.5779 GB, free: 37.41 MB / 378.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.01928/0.769, allocations: 6.753 MB / 0.5845 GB, free: 30.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.7691, allocations: 12.03 kB / 0.5845 GB, free: 30.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02738/0.7965, allocations: 6.902 MB / 0.5912 GB, free: 23.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/0.8131, allocations: 7.384 MB / 0.5984 GB, free: 16.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004449/0.8136, allocations: 431.8 kB / 0.5988 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002902/0.8165, allocations: 0.582 MB / 0.5994 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03192/0.8484, allocations: 14.66 MB / 0.6137 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005159/0.849, allocations: 87.38 kB / 0.6138 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002447/0.8515, allocations: 279.8 kB / 0.6141 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002484/0.854, allocations: 1.439 MB / 0.6155 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02818/0.8822, allocations: 12.79 MB / 0.628 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2963/1.179, allocations: 64.69 MB / 0.6911 GB, free: 33.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.018/1.197, allocations: 7.52 MB / 0.6985 GB, free: 32.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006968/1.204, allocations: 5.209 MB / 0.7036 GB, free: 32.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02025/1.224, allocations: 12.92 MB / 0.7162 GB, free: 28.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.445e-05/1.224, allocations: 76.86 kB / 0.7163 GB, free: 28.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 6.452e-06/1.224, allocations: 0 / 0.7163 GB, free: 28.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 1.693/2.917, allocations: 264.3 MB / 0.9743 GB, free: 96.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/2.917, allocations: 272.7 kB / 0.9746 GB, free: 96.17 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009139/2.926, allocations: 5.387 MB / 0.9799 GB, free: 95.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001806/2.928, allocations: 117 kB / 0.98 GB, free: 95.83 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003364/2.931, allocations: 4.013 MB / 0.9839 GB, free: 94.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003461/2.935, allocations: 2.113 MB / 0.986 GB, free: 93.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002358/2.937, allocations: 193.8 kB / 0.9861 GB, free: 93.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008634/2.938, allocations: 0.7082 MB / 0.9868 GB, free: 92.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01441/2.953, allocations: 8.671 MB / 0.9953 GB, free: 92.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01564/2.968, allocations: 12.82 MB / 1.008 GB, free: 85.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02905/2.997, allocations: 22.89 MB / 1.03 GB, free: 72.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000238/2.998, allocations: 41 kB / 1.03 GB, free: 72.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.09192/3.09, allocations: 40.35 MB / 1.07 GB, free: 52.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002543/3.09, allocations: 64 kB / 1.07 GB, free: 52.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003479/3.09, allocations: 140 kB / 1.07 GB, free: 52.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05928/3.15, allocations: 21.54 MB / 1.091 GB, free: 34.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004788/3.154, allocations: 1.435 MB / 1.092 GB, free: 32.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4516/3.606, allocations: 144.8 MB / 1.234 GB, free: 39.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01162/3.618, allocations: 0.7222 MB / 1.234 GB, free: 38.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002985/3.621, allocations: 0.5298 MB / 1.235 GB, free: 38.36 MB / 442.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.01079/3.632, allocations: 3.127 MB / 1.238 GB, free: 35.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003745/3.635, allocations: 0.5959 MB / 1.239 GB, free: 35.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08179/3.717, allocations: 36.32 MB / 1.274 GB, free: 4.918 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/3.717, allocations: 63.59 kB / 1.274 GB, free: 4.859 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002407/3.718, allocations: 64 kB / 1.274 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001643/3.718, allocations: 31.88 kB / 1.274 GB, free: 4.766 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3494/4.067, allocations: 57.23 MB / 1.33 GB, free: 93.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.215e-05/4.067, allocations: 1.781 kB / 1.33 GB, free: 93.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/4.069, allocations: 275 kB / 1.33 GB, free: 93.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05721/4.126, allocations: 20.76 MB / 1.351 GB, free: 89.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001993/4.128, allocations: 97.33 kB / 1.351 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4439/4.572, allocations: 132.6 MB / 1.48 GB, free: 89.49 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/4.572, allocations: 1.156 kB / 1.48 GB, free: 89.49 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09723/4.669, allocations: 48.74 MB / 1.528 GB, free: 78.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006744/4.676, allocations: 2.405 MB / 1.53 GB, free: 77.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003178/4.679, allocations: 98.42 kB / 1.53 GB, free: 77.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007027/4.686, allocations: 0.4955 MB / 1.531 GB, free: 77.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003776/4.69, allocations: 0.5081 MB / 1.531 GB, free: 77.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001385/4.692, allocations: 137.9 kB / 1.531 GB, free: 77.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007273/4.699, allocations: 3.425 MB / 1.535 GB, free: 76.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.42e-07/4.699, allocations: 0 / 1.535 GB, free: 76.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01631/4.715, allocations: 3.438 MB / 1.538 GB, free: 73.37 MB / 458.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.001866/4.717, allocations: 234.9 kB / 1.538 GB, free: 73.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03897/4.756, allocations: 24.54 MB / 1.562 GB, free: 52.04 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/4.756, allocations: 0 / 1.562 GB, free: 52.04 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0244/4.781, allocations: 13.81 MB / 1.576 GB, free: 39.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009233/4.79, allocations: 0.7908 MB / 1.576 GB, free: 39.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04458/4.835, allocations: 27.25 MB / 1.603 GB, free: 15.01 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00935/4.844, allocations: 5.186 MB / 1.608 GB, free: 11.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/4.845, allocations: 353.4 kB / 1.608 GB, free: 10.74 MB / 458.7 MB Notification: Performance of SimCode: time 9.12e-07/4.845, allocations: 0 / 1.608 GB, free: 10.74 MB / 458.7 MB Notification: Performance of Templates: time 0.7464/5.592, allocations: 240.7 MB / 1.844 GB, free: 105.5 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches