Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001533/0.001533, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.691/1.691, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008498/0.0008496, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.975e-05/3.014e-05, allocations: 4 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 47.58 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3495/0.4523, allocations: 94.25 MB / 464.3 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.4527, allocations: 90.06 kB / 464.4 MB, free: 15.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5561/1.009, allocations: 123.5 MB / 0.5741 GB, free: 89.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.009, allocations: 0 / 0.5741 GB, free: 89.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003904/1.009, allocations: 122 kB / 0.5742 GB, free: 89.09 MB / 410.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.02082/1.03, allocations: 6.513 MB / 0.5806 GB, free: 86.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/1.03, allocations: 8.75 kB / 0.5806 GB, free: 86.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03502/1.065, allocations: 9.439 MB / 0.5898 GB, free: 86.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02135/1.086, allocations: 8.571 MB / 0.5982 GB, free: 82.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004869/1.087, allocations: 438.3 kB / 0.5986 GB, free: 82.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003361/1.09, allocations: 0.5875 MB / 0.5992 GB, free: 81.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03587/1.126, allocations: 14.7 MB / 0.6135 GB, free: 66.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004256/1.127, allocations: 83.25 kB / 0.6136 GB, free: 66.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003488/1.13, allocations: 280.3 kB / 0.6139 GB, free: 66.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002211/1.132, allocations: 1.436 MB / 0.6153 GB, free: 65.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02575/1.158, allocations: 12.83 MB / 0.6278 GB, free: 52.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07778/1.236, allocations: 64.74 MB / 0.691 GB, free: 2.102 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2752/1.511, allocations: 7.795 MB / 0.6986 GB, free: 97.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008812/1.52, allocations: 5.153 MB / 0.7037 GB, free: 97.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0218/1.542, allocations: 12.98 MB / 0.7163 GB, free: 94.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/1.542, allocations: 76.25 kB / 0.7164 GB, free: 94.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 6.783e-06/1.542, allocations: 3.969 kB / 0.7164 GB, free: 94.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.2229/1.765, allocations: 79.76 MB / 0.7943 GB, free: 52.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/1.765, allocations: 268.8 kB / 0.7946 GB, free: 51.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007632/1.773, allocations: 4.737 MB / 0.7992 GB, free: 47.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001957/1.775, allocations: 113.7 kB / 0.7993 GB, free: 47.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002385/1.777, allocations: 4.017 MB / 0.8032 GB, free: 43.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003431/1.781, allocations: 2.109 MB / 0.8053 GB, free: 40.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001876/1.783, allocations: 192 kB / 0.8055 GB, free: 40.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004488/1.783, allocations: 0.7108 MB / 0.8062 GB, free: 40.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01126/1.794, allocations: 8.559 MB / 0.8145 GB, free: 31.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01518/1.81, allocations: 12.67 MB / 0.8269 GB, free: 16.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/1.825, allocations: 10.52 MB / 0.8372 GB, free: 6.367 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.825, allocations: 40 kB / 0.8372 GB, free: 6.328 MB / 426.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.3635/2.189, allocations: 40.09 MB / 0.8764 GB, free: 91.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002874/2.189, allocations: 66.56 kB / 0.8764 GB, free: 91.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003459/2.19, allocations: 137.6 kB / 0.8766 GB, free: 91.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07726/2.267, allocations: 21.52 MB / 0.8976 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004944/2.272, allocations: 1.435 MB / 0.899 GB, free: 88.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4687/2.741, allocations: 144.4 MB / 1.04 GB, free: 96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01208/2.753, allocations: 0.7211 MB / 1.041 GB, free: 96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003043/2.756, allocations: 0.5329 MB / 1.041 GB, free: 96 MB / 458.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 () * 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.003599/2.759, allocations: 0.736 MB / 1.042 GB, free: 95.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/2.761, allocations: 0.5952 MB / 1.042 GB, free: 95.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08165/2.843, allocations: 36.12 MB / 1.078 GB, free: 88.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.807e-05/2.843, allocations: 61.55 kB / 1.078 GB, free: 88.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001444/2.843, allocations: 66.44 kB / 1.078 GB, free: 88.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001383/2.843, allocations: 28.17 kB / 1.078 GB, free: 88.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1161/2.96, allocations: 57.03 MB / 1.134 GB, free: 52.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-05/2.96, allocations: 0 / 1.134 GB, free: 52.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/2.961, allocations: 277.4 kB / 1.134 GB, free: 52.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05682/3.018, allocations: 20.72 MB / 1.154 GB, free: 31.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002887/3.021, allocations: 101.7 kB / 1.154 GB, free: 31.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4994/3.52, allocations: 132.2 MB / 1.283 GB, free: 59.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/3.521, allocations: 4 kB / 1.283 GB, free: 59.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09673/3.617, allocations: 48.55 MB / 1.331 GB, free: 19.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007173/3.625, allocations: 2.408 MB / 1.333 GB, free: 17.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003208/3.628, allocations: 96 kB / 1.333 GB, free: 17.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008423/3.636, allocations: 0.4928 MB / 1.334 GB, free: 16.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004354/3.641, allocations: 0.5093 MB / 1.334 GB, free: 16.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001477/3.642, allocations: 140 kB / 1.334 GB, free: 16.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006985/3.649, allocations: 3.376 MB / 1.338 GB, free: 12.71 MB / 458.7 MB Notification: Performance of sort global known variables: time 4e-07/3.649, allocations: 1.469 kB / 1.338 GB, free: 12.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01791/3.667, allocations: 3.441 MB / 1.341 GB, free: 9.277 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 () * 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.002166/3.669, allocations: 236.8 kB / 1.341 GB, free: 9.062 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.314/3.983, allocations: 24.19 MB / 1.365 GB, free: 98.53 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/3.983, allocations: 3.188 kB / 1.365 GB, free: 98.53 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02805/4.011, allocations: 13.59 MB / 1.378 GB, free: 97.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006366/4.018, allocations: 0.7041 MB / 1.379 GB, free: 97.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04032/4.058, allocations: 21.09 MB / 1.399 GB, free: 92.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008912/4.067, allocations: 5.324 MB / 1.405 GB, free: 90.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006297/4.073, allocations: 2.084 MB / 1.407 GB, free: 90.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/4.075, allocations: 306 kB / 1.407 GB, free: 90.72 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/4.075, allocations: 0 / 1.407 GB, free: 90.72 MB / 458.7 MB Notification: Performance of Templates: time 0.6041/4.679, allocations: 223.2 MB / 1.625 GB, free: 28.7 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches