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.001662/0.001662, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.0011, allocations: 90.25 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.363e-05/2.357e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3322, allocations: 47.56 MB / 362.3 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.4832, allocations: 93.61 MB / 455.9 MB, free: 8.691 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.4836, allocations: 79.95 kB / 456 MB, free: 8.613 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7467/1.23, allocations: 120.9 MB / 0.5634 GB, free: 78.18 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.795e-06/1.23, allocations: 0 / 0.5634 GB, free: 78.18 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000461/1.231, allocations: 123.8 kB / 0.5635 GB, free: 78.06 MB / 395.1 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.02858/1.259, allocations: 6.521 MB / 0.5699 GB, free: 71.48 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/1.26, allocations: 8.031 kB / 0.5699 GB, free: 71.47 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06666/1.326, allocations: 9.426 MB / 0.5791 GB, free: 62.02 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03004/1.356, allocations: 8.561 MB / 0.5874 GB, free: 53.47 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/1.357, allocations: 186.9 kB / 0.5876 GB, free: 53.29 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003186/1.36, allocations: 359.7 kB / 0.588 GB, free: 52.94 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02142/1.381, allocations: 8.87 MB / 0.5966 GB, free: 44.07 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/1.415, allocations: 13.02 MB / 0.6093 GB, free: 29.88 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004847/1.415, allocations: 87.28 kB / 0.6094 GB, free: 29.8 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002585/1.418, allocations: 36 kB / 0.6095 GB, free: 29.76 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003163/1.421, allocations: 1.446 MB / 0.6109 GB, free: 28.32 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4149/1.836, allocations: 62.95 MB / 0.6723 GB, free: 54.91 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01382/1.85, allocations: 7.023 MB / 0.6792 GB, free: 54.23 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01008/1.86, allocations: 5.038 MB / 0.6841 GB, free: 54.18 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001295/1.861, allocations: 0.5732 MB / 0.6847 GB, free: 53.71 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.985e-05/1.861, allocations: 76.55 kB / 0.6848 GB, free: 53.67 MB / 411.1 MB Notification: Performance of pre-optimization done (n=346): time 8.436e-06/1.862, allocations: 2.391 kB / 0.6848 GB, free: 53.67 MB / 411.1 MB Notification: Performance of matching and sorting (n=610): time 0.3194/2.181, allocations: 75.32 MB / 0.7583 GB, free: 16.84 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/2.181, allocations: 273.9 kB / 0.7586 GB, free: 16.52 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008951/2.19, allocations: 3.998 MB / 0.7625 GB, free: 13.1 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002132/2.192, allocations: 25.7 kB / 0.7625 GB, free: 13.07 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003553/2.196, allocations: 3.921 MB / 0.7663 GB, free: 9.52 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003855/2.2, allocations: 2.055 MB / 0.7683 GB, free: 7.648 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002317/2.202, allocations: 0 / 0.7683 GB, free: 7.648 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0007063/2.203, allocations: 0.7274 MB / 0.769 GB, free: 7.027 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01822/2.221, allocations: 8.434 MB / 0.7773 GB, free: 14.63 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02575/2.247, allocations: 12.63 MB / 0.7896 GB, free: 160 kB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02563/2.273, allocations: 10.4 MB / 0.7998 GB, free: 5.855 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002034/2.273, allocations: 44 kB / 0.7998 GB, free: 5.812 MB / 443.1 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.4782/2.751, allocations: 38.81 MB / 0.8377 GB, free: 116.3 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/2.751, allocations: 70.55 kB / 0.8378 GB, free: 116.3 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003259/2.751, allocations: 141.7 kB / 0.8379 GB, free: 116.3 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.12/2.871, allocations: 21.33 MB / 0.8588 GB, free: 116.1 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009266/2.881, allocations: 1.488 MB / 0.8602 GB, free: 116.1 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6584/3.539, allocations: 137 MB / 0.994 GB, free: 108 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01798/3.557, allocations: 0.5505 MB / 0.9946 GB, free: 108 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003853/3.561, allocations: 0.5432 MB / 0.9951 GB, free: 108 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * 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 (805): * Single equations (assignments): 798 * 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,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.006099/3.567, allocations: 497.7 kB / 0.9956 GB, free: 107.9 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003452/3.571, allocations: 0.549 MB / 0.9961 GB, free: 107.9 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1599/3.731, allocations: 35.47 MB / 1.031 GB, free: 105.7 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000194/3.731, allocations: 62.92 kB / 1.031 GB, free: 105.7 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0003097/3.731, allocations: 62.12 kB / 1.031 GB, free: 105.7 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001991/3.732, allocations: 32.17 kB / 1.031 GB, free: 105.7 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2035/3.935, allocations: 55.74 MB / 1.085 GB, free: 73.16 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.169e-05/3.935, allocations: 4 kB / 1.085 GB, free: 73.16 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002772/3.938, allocations: 279.6 kB / 1.086 GB, free: 72.89 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1067/4.045, allocations: 20.57 MB / 1.106 GB, free: 52.4 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002049/4.047, allocations: 11.98 kB / 1.106 GB, free: 52.39 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6313/4.678, allocations: 124.6 MB / 1.227 GB, free: 85.04 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/4.678, allocations: 0.5469 kB / 1.227 GB, free: 85.04 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1617/4.84, allocations: 48.01 MB / 1.274 GB, free: 46.02 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009586/4.85, allocations: 2.35 MB / 1.277 GB, free: 43.66 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003374/4.853, allocations: 8.609 kB / 1.277 GB, free: 43.65 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01286/4.866, allocations: 415.1 kB / 1.277 GB, free: 43.25 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004962/4.871, allocations: 0.5081 MB / 1.278 GB, free: 42.73 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001945/4.873, allocations: 144 kB / 1.278 GB, free: 42.59 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.006798/4.88, allocations: 2.742 MB / 1.28 GB, free: 39.86 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.032e-06/4.88, allocations: 0 / 1.28 GB, free: 39.86 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01938/4.899, allocations: 3.052 MB / 1.283 GB, free: 36.82 MB / 459.1 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 (154): * Single equations (assignments): 147 * 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.00244/4.902, allocations: 147.9 kB / 1.283 GB, free: 36.7 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.3674/5.269, allocations: 23.57 MB / 1.306 GB, free: 105.3 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/5.269, allocations: 0 / 1.306 GB, free: 105.3 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.06229/5.332, allocations: 13.24 MB / 1.319 GB, free: 104.6 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01034/5.342, allocations: 0.5449 MB / 1.32 GB, free: 104.6 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06634/5.408, allocations: 21.53 MB / 1.341 GB, free: 102.2 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01268/5.421, allocations: 5.327 MB / 1.346 GB, free: 101.3 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/5.423, allocations: 330.9 kB / 1.346 GB, free: 101.3 MB / 459.1 MB Notification: Performance of SimCode: time 1.322e-06/5.423, allocations: 0 / 1.346 GB, free: 101.3 MB / 459.1 MB Notification: Performance of Templates: time 0.73/6.153, allocations: 224.7 MB / 1.566 GB, free: 58.18 MB / 459.1 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