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.002302/0.002302, allocations: 180.5 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001067/0.001067, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.927e-05/3.935e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5349/0.6576, allocations: 94.26 MB / 463.3 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/0.658, allocations: 94.64 kB / 463.4 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7963/1.454, allocations: 123.5 MB / 0.5732 GB, free: 88.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.454, allocations: 3.562 kB / 0.5732 GB, free: 88.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005062/1.455, allocations: 122.6 kB / 0.5733 GB, free: 88.75 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.02924/1.484, allocations: 6.519 MB / 0.5797 GB, free: 86.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/1.484, allocations: 10.03 kB / 0.5797 GB, free: 86.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0693/1.554, allocations: 9.426 MB / 0.5889 GB, free: 85.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03026/1.584, allocations: 8.588 MB / 0.5973 GB, free: 82.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005481/1.585, allocations: 433.6 kB / 0.5977 GB, free: 82.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003481/1.588, allocations: 0.5745 MB / 0.5983 GB, free: 81.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04561/1.634, allocations: 14.71 MB / 0.6126 GB, free: 67.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004453/1.634, allocations: 79.31 kB / 0.6127 GB, free: 67.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002756/1.637, allocations: 271.8 kB / 0.613 GB, free: 66.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/1.64, allocations: 1.451 MB / 0.6144 GB, free: 65.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04047/1.681, allocations: 12.82 MB / 0.6269 GB, free: 52.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1096/1.79, allocations: 64.75 MB / 0.6901 GB, free: 2.355 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3377/2.128, allocations: 7.795 MB / 0.6977 GB, free: 97.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01109/2.139, allocations: 5.151 MB / 0.7028 GB, free: 97.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03413/2.173, allocations: 12.99 MB / 0.7154 GB, free: 94.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/2.174, allocations: 68.28 kB / 0.7155 GB, free: 94.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.195e-06/2.174, allocations: 0 / 0.7155 GB, free: 94.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.4335/2.607, allocations: 79.77 MB / 0.7934 GB, free: 52.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/2.607, allocations: 265.9 kB / 0.7937 GB, free: 52.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01226/2.619, allocations: 4.734 MB / 0.7983 GB, free: 47.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002233/2.622, allocations: 117.7 kB / 0.7984 GB, free: 47.47 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003361/2.625, allocations: 3.8 MB / 0.8021 GB, free: 43.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004017/2.629, allocations: 2.108 MB / 0.8042 GB, free: 41.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002723/2.632, allocations: 192 kB / 0.8044 GB, free: 41.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007892/2.633, allocations: 0.7194 MB / 0.8051 GB, free: 40.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01966/2.653, allocations: 8.559 MB / 0.8134 GB, free: 32.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0227/2.675, allocations: 12.67 MB / 0.8258 GB, free: 17.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02357/2.699, allocations: 10.51 MB / 0.836 GB, free: 6.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001327/2.699, allocations: 40 kB / 0.8361 GB, free: 6.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.4957/3.195, allocations: 39.87 MB / 0.875 GB, free: 91.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/3.195, allocations: 67.72 kB / 0.8751 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000237/3.195, allocations: 136.8 kB / 0.8752 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1208/3.316, allocations: 21.51 MB / 0.8962 GB, free: 89.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009068/3.325, allocations: 1.434 MB / 0.8976 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7175/4.043, allocations: 144.4 MB / 1.039 GB, free: 96.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01844/4.061, allocations: 0.7164 MB / 1.039 GB, free: 96.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003356/4.065, allocations: 0.5309 MB / 1.04 GB, free: 96.33 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.005936/4.071, allocations: 0.7425 MB / 1.041 GB, free: 96.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00332/4.074, allocations: 0.5935 MB / 1.041 GB, free: 96.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.148/4.222, allocations: 36.12 MB / 1.076 GB, free: 89.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/4.222, allocations: 68.22 kB / 1.076 GB, free: 89.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001787/4.222, allocations: 62.59 kB / 1.077 GB, free: 89.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001493/4.223, allocations: 29.92 kB / 1.077 GB, free: 89.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2096/4.432, allocations: 57.02 MB / 1.132 GB, free: 53.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.866e-05/4.432, allocations: 0 / 1.132 GB, free: 53.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002757/4.435, allocations: 277.4 kB / 1.133 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1099/4.545, allocations: 20.71 MB / 1.153 GB, free: 32.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002462/4.547, allocations: 99.84 kB / 1.153 GB, free: 32.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6924/5.24, allocations: 132.2 MB / 1.282 GB, free: 60.26 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/5.24, allocations: 0 / 1.282 GB, free: 60.26 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2244/5.464, allocations: 48.54 MB / 1.329 GB, free: 20.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009729/5.474, allocations: 2.409 MB / 1.332 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003782/5.478, allocations: 92 kB / 1.332 GB, free: 17.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01336/5.491, allocations: 0.5047 MB / 1.332 GB, free: 17.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005255/5.497, allocations: 0.5033 MB / 1.333 GB, free: 16.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001998/5.499, allocations: 144.7 kB / 1.333 GB, free: 16.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008967/5.508, allocations: 3.374 MB / 1.336 GB, free: 13.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.382e-06/5.508, allocations: 0 / 1.336 GB, free: 13.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01974/5.528, allocations: 3.442 MB / 1.34 GB, free: 9.766 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.00272/5.53, allocations: 235.2 kB / 1.34 GB, free: 9.551 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3919/5.922, allocations: 24.19 MB / 1.363 GB, free: 98.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/5.922, allocations: 0 / 1.363 GB, free: 98.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04093/5.963, allocations: 13.59 MB / 1.377 GB, free: 97.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007276/5.971, allocations: 0.7057 MB / 1.377 GB, free: 97.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0588/6.03, allocations: 21.83 MB / 1.399 GB, free: 92.28 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01321/6.043, allocations: 5.32 MB / 1.404 GB, free: 90.62 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/6.045, allocations: 350.9 kB / 1.404 GB, free: 90.61 MB / 458.7 MB Notification: Performance of SimCode: time 1.924e-06/6.045, allocations: 1.969 kB / 1.404 GB, free: 90.61 MB / 458.7 MB Notification: Performance of Templates: time 0.7587/6.804, allocations: 227.8 MB / 1.627 GB, free: 28.8 MB / 458.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