Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 202.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.599/1.599, 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.001006/0.001005, allocations: 98.03 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.096e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1328, allocations: 51.47 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.6056, allocations: 103.9 MB / 499 MB, free: 5.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.6059, allocations: 90.2 kB / 499.1 MB, free: 5.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.706/1.312, allocations: 144.1 MB / 0.6281 GB, free: 71.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.312, allocations: 0 / 0.6281 GB, free: 71.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007007/1.313, allocations: 153.3 kB / 0.6283 GB, free: 71.81 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03001/1.343, allocations: 7.533 MB / 0.6356 GB, free: 69.11 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/1.343, allocations: 11.78 kB / 0.6356 GB, free: 69.11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04321/1.386, allocations: 11.73 MB / 0.6471 GB, free: 68.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02391/1.41, allocations: 8.993 MB / 0.6559 GB, free: 64.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/1.41, allocations: 227.1 kB / 0.6561 GB, free: 64.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004263/1.415, allocations: 427.9 kB / 0.6565 GB, free: 64.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0205/1.435, allocations: 9.859 MB / 0.6661 GB, free: 61.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03047/1.466, allocations: 14.62 MB / 0.6804 GB, free: 53.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003891/1.466, allocations: 93.58 kB / 0.6805 GB, free: 53.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001366/1.468, allocations: 38.03 kB / 0.6805 GB, free: 53.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001864/1.47, allocations: 1.463 MB / 0.682 GB, free: 53.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4291/1.899, allocations: 71.25 MB / 0.7515 GB, free: 76.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006555/1.905, allocations: 6.014 MB / 0.7574 GB, free: 75.56 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004309/1.91, allocations: 4.609 MB / 0.7619 GB, free: 75.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008796/1.91, allocations: 0.8685 MB / 0.7628 GB, free: 74.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/1.911, allocations: 70.09 kB / 0.7628 GB, free: 74.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=292): time 5.08e-06/1.911, allocations: 0 / 0.7628 GB, free: 74.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=385): time 0.1169/2.027, allocations: 53.19 MB / 0.8148 GB, free: 64.49 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/2.028, allocations: 379.3 kB / 0.8151 GB, free: 64.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006741/2.034, allocations: 4.801 MB / 0.8198 GB, free: 62.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009339/2.035, allocations: 25.7 kB / 0.8199 GB, free: 62.31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/2.038, allocations: 4.895 MB / 0.8246 GB, free: 58.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/2.039, allocations: 1.365 MB / 0.826 GB, free: 57.67 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005067/2.04, allocations: 0 / 0.826 GB, free: 57.67 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003672/2.04, allocations: 0.6972 MB / 0.8266 GB, free: 57.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005634/2.046, allocations: 5.326 MB / 0.8318 GB, free: 55.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008247/2.054, allocations: 10.38 MB / 0.842 GB, free: 46.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/2.065, allocations: 7.306 MB / 0.8491 GB, free: 43.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001226/2.065, allocations: 49.06 kB / 0.8492 GB, free: 43.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.04152/2.107, allocations: 20.25 MB / 0.8689 GB, free: 31.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/2.107, allocations: 84 kB / 0.869 GB, free: 31.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/2.107, allocations: 176 kB / 0.8692 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01912/2.126, allocations: 6.518 MB / 0.8755 GB, free: 26.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008298/2.134, allocations: 2.102 MB / 0.8776 GB, free: 24.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04426/2.179, allocations: 31.01 MB / 0.9079 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.189, allocations: 0.5341 MB / 0.9084 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003145/2.193, allocations: 0.5247 MB / 0.9089 GB, free: 15.12 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1053): * Single equations (assignments): 1046 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 69,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002965/2.196, allocations: 0.5573 MB / 0.9095 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002489/2.198, allocations: 0.5554 MB / 0.91 GB, free: 14.01 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3455/2.544, allocations: 15.22 MB / 0.9249 GB, free: 82.15 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/2.544, allocations: 51.02 kB / 0.9249 GB, free: 82.15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.307e-05/2.544, allocations: 20.28 kB / 0.9249 GB, free: 82.15 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.869e-05/2.544, allocations: 20.23 kB / 0.925 GB, free: 82.15 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05282/2.597, allocations: 29.38 MB / 0.9536 GB, free: 79.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.043e-05/2.597, allocations: 5.656 kB / 0.9537 GB, free: 79.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003798/2.601, allocations: 0.5908 MB / 0.9542 GB, free: 79.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02054/2.621, allocations: 6.118 MB / 0.9602 GB, free: 78.67 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001149/2.622, allocations: 11.69 kB / 0.9602 GB, free: 78.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03788/2.66, allocations: 28.58 MB / 0.9881 GB, free: 65.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/2.66, allocations: 9.969 kB / 0.9881 GB, free: 65.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03489/2.695, allocations: 22.91 MB / 1.011 GB, free: 57.24 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/2.697, allocations: 0.5669 MB / 1.011 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001648/2.699, allocations: 7.031 kB / 1.011 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004801/2.703, allocations: 353.3 kB / 1.011 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/2.705, allocations: 252.8 kB / 1.012 GB, free: 57.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004011/2.705, allocations: 103.2 kB / 1.012 GB, free: 57.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00569/2.711, allocations: 3.287 MB / 1.015 GB, free: 55.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.711, allocations: 2.625 kB / 1.015 GB, free: 55.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01167/2.722, allocations: 1.938 MB / 1.017 GB, free: 55.85 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 247 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001243/2.724, allocations: 243.9 kB / 1.017 GB, free: 55.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02174/2.745, allocations: 13.42 MB / 1.03 GB, free: 50.62 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/2.745, allocations: 0 / 1.03 GB, free: 50.62 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009373/2.755, allocations: 6.199 MB / 1.036 GB, free: 47.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005343/2.76, allocations: 0.7188 MB / 1.037 GB, free: 47.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03293/2.793, allocations: 16.58 MB / 1.053 GB, free: 32.98 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0119/2.805, allocations: 5.427 MB / 1.058 GB, free: 28.99 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01066/2.816, allocations: 3.106 MB / 1.061 GB, free: 26.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/2.818, allocations: 366.7 kB / 1.062 GB, free: 26.59 MB / 474.7 MB Notification: Performance of SimCode: time 1.303e-06/2.818, allocations: 0 / 1.062 GB, free: 26.59 MB / 474.7 MB Notification: Performance of Templates: time 0.4522/3.27, allocations: 92.43 MB / 1.152 GB, free: 86.97 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches