Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001805/0.001805, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009699/0.00097, allocations: 96.97 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.095e-05/2.089e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 51.47 MB / 395.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/0.5598, allocations: 95.78 MB / 490.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.5601, allocations: 84.08 kB / 491 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5993/1.159, allocations: 126.1 MB / 0.6027 GB, free: 73.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.16, allocations: 0 / 0.6027 GB, free: 73.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005244/1.16, allocations: 124.6 kB / 0.6028 GB, free: 73.64 MB / 442.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.02353/1.184, allocations: 6.625 MB / 0.6093 GB, free: 71.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/1.184, allocations: 6.656 kB / 0.6093 GB, free: 71.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03905/1.223, allocations: 9.567 MB / 0.6186 GB, free: 70.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01979/1.243, allocations: 7.333 MB / 0.6258 GB, free: 69.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005533/1.243, allocations: 183.5 kB / 0.626 GB, free: 69.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003598/1.247, allocations: 347.6 kB / 0.6263 GB, free: 69.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01932/1.266, allocations: 8.877 MB / 0.635 GB, free: 69.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02713/1.293, allocations: 13.02 MB / 0.6477 GB, free: 63.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005501/1.294, allocations: 84.44 kB / 0.6477 GB, free: 63.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002815/1.297, allocations: 39.66 kB / 0.6478 GB, free: 63.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002166/1.299, allocations: 1.445 MB / 0.6492 GB, free: 63.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0782/1.377, allocations: 62.89 MB / 0.7106 GB, free: 19.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008126/1.385, allocations: 7.013 MB / 0.7175 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004979/1.39, allocations: 5.04 MB / 0.7224 GB, free: 8.859 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006896/1.391, allocations: 0.5778 MB / 0.7229 GB, free: 8.246 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/1.391, allocations: 76.69 kB / 0.723 GB, free: 8.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=346): time 6.062e-06/1.391, allocations: 5.875 kB / 0.723 GB, free: 8.156 MB / 442.7 MB Notification: Performance of matching and sorting (n=610): time 0.5642/1.955, allocations: 75.18 MB / 0.7964 GB, free: 80.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/1.955, allocations: 269.3 kB / 0.7967 GB, free: 79.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/1.968, allocations: 3.955 MB / 0.8006 GB, free: 79.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003084/1.971, allocations: 25.7 kB / 0.8006 GB, free: 79.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005837/1.977, allocations: 4.045 MB / 0.8045 GB, free: 76.26 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.007264/1.985, allocations: 2.055 MB / 0.8065 GB, free: 74.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003669/1.988, allocations: 0 / 0.8065 GB, free: 74.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001467/1.99, allocations: 0.721 MB / 0.8072 GB, free: 74.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02/2.01, allocations: 8.435 MB / 0.8155 GB, free: 70.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02132/2.031, allocations: 12.63 MB / 0.8278 GB, free: 62.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0262/2.058, allocations: 10.4 MB / 0.838 GB, free: 58.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003278/2.058, allocations: 41 kB / 0.838 GB, free: 58.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.1568/2.215, allocations: 39 MB / 0.8761 GB, free: 40.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002329/2.215, allocations: 71.12 kB / 0.8762 GB, free: 40.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003146/2.216, allocations: 144.6 kB / 0.8763 GB, free: 39.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0606/2.276, allocations: 21.33 MB / 0.8971 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005484/2.282, allocations: 1.493 MB / 0.8986 GB, free: 18.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5142/2.796, allocations: 137 MB / 1.032 GB, free: 32.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01255/2.808, allocations: 0.552 MB / 1.033 GB, free: 32.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003002/2.812, allocations: 0.5419 MB / 1.033 GB, free: 31.92 MB / 458.7 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.003664/2.815, allocations: 499.3 kB / 1.034 GB, free: 31.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002296/2.818, allocations: 0.5466 MB / 1.034 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06969/2.887, allocations: 35.47 MB / 1.069 GB, free: 4.492 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.079e-05/2.887, allocations: 60 kB / 1.069 GB, free: 4.434 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001158/2.887, allocations: 64 kB / 1.069 GB, free: 4.371 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001429/2.888, allocations: 34.83 kB / 1.069 GB, free: 4.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.399/3.287, allocations: 55.72 MB / 1.124 GB, free: 83.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000116/3.287, allocations: 7.328 kB / 1.124 GB, free: 83.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/3.289, allocations: 282.4 kB / 1.124 GB, free: 83.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0591/3.348, allocations: 20.57 MB / 1.144 GB, free: 81.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002095/3.35, allocations: 3.938 kB / 1.144 GB, free: 81.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.472/3.822, allocations: 124.6 MB / 1.266 GB, free: 76.74 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/3.822, allocations: 0 / 1.266 GB, free: 76.74 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09077/3.913, allocations: 48 MB / 1.313 GB, free: 74.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001611/3.915, allocations: 0.5564 MB / 1.313 GB, free: 74.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002434/3.917, allocations: 9.141 kB / 1.313 GB, free: 74.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006557/3.924, allocations: 413.8 kB / 1.314 GB, free: 74.73 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003185/3.927, allocations: 0.5121 MB / 1.314 GB, free: 74.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008429/3.928, allocations: 142.1 kB / 1.314 GB, free: 74.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003996/3.932, allocations: 2.702 MB / 1.317 GB, free: 73.63 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/3.932, allocations: 3.609 kB / 1.317 GB, free: 73.63 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01412/3.946, allocations: 3.056 MB / 1.32 GB, free: 73.63 MB / 474.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 (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.001487/3.947, allocations: 154.4 kB / 1.32 GB, free: 73.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03625/3.984, allocations: 23.57 MB / 1.343 GB, free: 64.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/3.984, allocations: 0 / 1.343 GB, free: 64.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02731/4.011, allocations: 13.24 MB / 1.356 GB, free: 58.44 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00514/4.016, allocations: 0.5338 MB / 1.356 GB, free: 58.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03684/4.053, allocations: 20.75 MB / 1.377 GB, free: 42.62 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00723/4.06, allocations: 5.3 MB / 1.382 GB, free: 38.72 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005758/4.066, allocations: 2.132 MB / 1.384 GB, free: 37.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008108/4.067, allocations: 285 kB / 1.384 GB, free: 37.19 MB / 474.7 MB Notification: Performance of SimCode: time 1.072e-06/4.067, allocations: 1.203 kB / 1.384 GB, free: 37.19 MB / 474.7 MB Notification: Performance of Templates: time 0.5649/4.632, allocations: 212.1 MB / 1.591 GB, free: 3.617 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches