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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002646/0.002653, allocations: 177.2 kB / 8.149 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001292/0.001292, allocations: 95.2 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.46e-05/1.482e-05, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2827, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.4307, allocations: 93.53 MB / 455.4 MB, free: 8.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.4311, allocations: 86.8 kB / 455.5 MB, free: 8.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.6886/1.12, allocations: 119.3 MB / 0.5613 GB, free: 78.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005082/1.12, allocations: 120 kB / 0.5614 GB, free: 78.29 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.02894/1.149, allocations: 6.445 MB / 0.5677 GB, free: 71.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/1.149, allocations: 11.97 kB / 0.5677 GB, free: 71.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06231/1.212, allocations: 9.007 MB / 0.5765 GB, free: 62.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03164/1.243, allocations: 8.666 MB / 0.5849 GB, free: 54.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003724/1.244, allocations: 188 kB / 0.5851 GB, free: 53.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003416/1.247, allocations: 351.8 kB / 0.5854 GB, free: 53.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02412/1.271, allocations: 9.187 MB / 0.5944 GB, free: 44.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/1.307, allocations: 13.32 MB / 0.6074 GB, free: 29.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004585/1.308, allocations: 87.2 kB / 0.6075 GB, free: 29.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/1.31, allocations: 36 kB / 0.6075 GB, free: 29.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003259/1.314, allocations: 1.554 MB / 0.6091 GB, free: 28.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2775/1.591, allocations: 64.58 MB / 0.6721 GB, free: 92.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.014/1.605, allocations: 7.182 MB / 0.6792 GB, free: 92.03 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01028/1.616, allocations: 5.51 MB / 0.6845 GB, free: 91.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03832/1.654, allocations: 14.14 MB / 0.6983 GB, free: 88.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.955e-05/1.654, allocations: 70.5 kB / 0.6984 GB, free: 88.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 7.134e-06/1.654, allocations: 2.062 kB / 0.6984 GB, free: 88.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 0.349/2.003, allocations: 72.74 MB / 0.7694 GB, free: 45.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/2.003, allocations: 269.9 kB / 0.7697 GB, free: 45.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/2.014, allocations: 4.057 MB / 0.7737 GB, free: 41.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00228/2.017, allocations: 25.7 kB / 0.7737 GB, free: 41.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/2.019, allocations: 3.422 MB / 0.777 GB, free: 37.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004268/2.024, allocations: 2.033 MB / 0.779 GB, free: 35.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00287/2.026, allocations: 4 kB / 0.779 GB, free: 35.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009239/2.027, allocations: 0.7199 MB / 0.7797 GB, free: 35.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02008/2.048, allocations: 8.578 MB / 0.7881 GB, free: 26.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02323/2.071, allocations: 12.76 MB / 0.8006 GB, free: 11.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02424/2.095, allocations: 10.59 MB / 0.8109 GB, free: 1.188 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000147/2.095, allocations: 40 kB / 0.811 GB, free: 1.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.3482/2.444, allocations: 38.4 MB / 0.8484 GB, free: 111.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/2.444, allocations: 5.531 kB / 0.8485 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/2.444, allocations: 143.9 kB / 0.8486 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1288/2.573, allocations: 20.53 MB / 0.8686 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009936/2.583, allocations: 1.479 MB / 0.8701 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5386/3.121, allocations: 128 MB / 0.9951 GB, free: 99.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01734/3.139, allocations: 404.4 kB / 0.9955 GB, free: 99.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004027/3.143, allocations: 0.5418 MB / 0.996 GB, free: 99.8 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]: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,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,3]: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 (799): * Single equations (assignments): 792 * 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,35.5%) 176,(18,37.0%) 114,(3,100.0%) 6} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.006442/3.149, allocations: 415.5 kB / 0.9964 GB, free: 99.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003595/3.153, allocations: 0.5545 MB / 0.997 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1644/3.317, allocations: 35.07 MB / 1.031 GB, free: 89.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001623/3.318, allocations: 58.72 kB / 1.031 GB, free: 89.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000138/3.318, allocations: 66.5 kB / 1.031 GB, free: 89.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000132/3.318, allocations: 32.62 kB / 1.031 GB, free: 89.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2127/3.531, allocations: 55.1 MB / 1.085 GB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.305e-05/3.531, allocations: 4 kB / 1.085 GB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002975/3.534, allocations: 272 kB / 1.085 GB, free: 43.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3423/3.876, allocations: 20.12 MB / 1.105 GB, free: 97.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002383/3.879, allocations: 11.52 kB / 1.105 GB, free: 97.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3695/4.248, allocations: 116.9 MB / 1.219 GB, free: 45.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/4.248, allocations: 4 kB / 1.219 GB, free: 45.05 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3511/4.599, allocations: 47.94 MB / 1.266 GB, free: 94.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009602/4.609, allocations: 2.342 MB / 1.268 GB, free: 94.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004223/4.613, allocations: 6.656 kB / 1.268 GB, free: 94.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01359/4.627, allocations: 269.2 kB / 1.269 GB, free: 94.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003168/4.63, allocations: 266 kB / 1.269 GB, free: 94.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002204/4.632, allocations: 143.2 kB / 1.269 GB, free: 94.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.007919/4.64, allocations: 2.793 MB / 1.272 GB, free: 94.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01991/4.66, allocations: 2.832 MB / 1.275 GB, free: 94.32 MB / 410.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.002709/4.663, allocations: 152.6 kB / 1.275 GB, free: 94.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.06547/4.728, allocations: 22.9 MB / 1.297 GB, free: 89.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/4.729, allocations: 0 / 1.297 GB, free: 89.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04427/4.773, allocations: 12.43 MB / 1.309 GB, free: 84.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007445/4.78, allocations: 0.5225 MB / 1.31 GB, free: 83.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08171/4.862, allocations: 22.17 MB / 1.331 GB, free: 72.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01543/4.878, allocations: 5.58 MB / 1.337 GB, free: 68.26 MB / 410.7 MB Notification: Performance of SimCode: time 1.784e-06/4.878, allocations: 0 / 1.337 GB, free: 68.26 MB / 410.7 MB Notification: Performance of Templates: time 0.7986/5.676, allocations: 274.4 MB / 1.605 GB, free: 69.7 MB / 410.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