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.001569/0.001569, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009572/0.0009573, allocations: 84.62 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.995e-05/3.999e-05, allocations: 4 kB / 350.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1146, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4236/0.5383, allocations: 104.5 MB / 0.4947 GB, free: 1.238 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.5386, allocations: 86.7 kB / 0.4948 GB, free: 1.195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6311/1.17, allocations: 147 MB / 0.6384 GB, free: 75.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.023e-06/1.17, allocations: 0 / 0.6384 GB, free: 75.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006958/1.17, allocations: 146.8 kB / 0.6385 GB, free: 75.23 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.02555/1.196, allocations: 7.539 MB / 0.6459 GB, free: 72.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/1.196, allocations: 10.12 kB / 0.6459 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04291/1.239, allocations: 11.74 MB / 0.6573 GB, free: 70.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02322/1.262, allocations: 8.988 MB / 0.6661 GB, free: 65.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005958/1.263, allocations: 0.5216 MB / 0.6666 GB, free: 65.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003554/1.266, allocations: 0.704 MB / 0.6673 GB, free: 65.13 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0388/1.305, allocations: 17.25 MB / 0.6842 GB, free: 52.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003635/1.306, allocations: 99.08 kB / 0.6843 GB, free: 52.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001597/1.307, allocations: 331.3 kB / 0.6846 GB, free: 51.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001763/1.309, allocations: 1.455 MB / 0.686 GB, free: 50.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/1.338, allocations: 14.3 MB / 0.7 GB, free: 36.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3916/1.73, allocations: 73.12 MB / 0.7714 GB, free: 38.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02251/1.752, allocations: 8.722 MB / 0.7799 GB, free: 38.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005344/1.758, allocations: 4.729 MB / 0.7845 GB, free: 38.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02611/1.784, allocations: 17.69 MB / 0.8018 GB, free: 36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/1.784, allocations: 69.34 kB / 0.8018 GB, free: 35.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=281): time 6.292e-06/1.784, allocations: 0 / 0.8018 GB, free: 35.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.1786/1.963, allocations: 57.37 MB / 0.8579 GB, free: 25.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.963, allocations: 376.2 kB / 0.8582 GB, free: 25.14 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009708/1.972, allocations: 5.423 MB / 0.8635 GB, free: 23.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/1.973, allocations: 85.14 kB / 0.8636 GB, free: 23.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004807/1.978, allocations: 4.876 MB / 0.8684 GB, free: 18.92 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002705/1.981, allocations: 1.373 MB / 0.8697 GB, free: 17.71 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/1.982, allocations: 182.5 kB / 0.8699 GB, free: 17.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004537/1.983, allocations: 0.68 MB / 0.8705 GB, free: 16.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008141/1.991, allocations: 5.412 MB / 0.8758 GB, free: 12.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01064/2.002, allocations: 10.38 MB / 0.886 GB, free: 15.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/2.014, allocations: 7.381 MB / 0.8932 GB, free: 9.641 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001832/2.015, allocations: 48.56 kB / 0.8932 GB, free: 9.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.0541/2.069, allocations: 21.51 MB / 0.9142 GB, free: 7.102 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002383/2.069, allocations: 76 kB / 0.9143 GB, free: 7.027 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002753/2.069, allocations: 172.5 kB / 0.9145 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02135/2.091, allocations: 6.519 MB / 0.9208 GB, free: 332 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009184/2.1, allocations: 2.051 MB / 0.9228 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3125/2.412, allocations: 32.33 MB / 0.9544 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008599/2.421, allocations: 0.693 MB / 0.9551 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001522/2.423, allocations: 0.5093 MB / 0.9556 GB, free: 115.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 (1023): * Single equations (assignments): 1016 * 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%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001663/2.424, allocations: 0.7741 MB / 0.9563 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/2.425, allocations: 0.5832 MB / 0.9569 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03206/2.458, allocations: 15.4 MB / 0.9719 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/2.458, allocations: 46.84 kB / 0.972 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.206e-05/2.458, allocations: 17.59 kB / 0.972 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.289e-05/2.458, allocations: 20.22 kB / 0.972 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05483/2.513, allocations: 30.37 MB / 1.002 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.695e-05/2.513, allocations: 5.375 kB / 1.002 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003183/2.516, allocations: 0.5734 MB / 1.002 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01786/2.534, allocations: 6.148 MB / 1.008 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008276/2.535, allocations: 62.94 kB / 1.008 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03663/2.571, allocations: 30.69 MB / 1.038 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/2.571, allocations: 8.156 kB / 1.038 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03719/2.609, allocations: 22.99 MB / 1.061 GB, free: 72.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001924/2.611, allocations: 0.5989 MB / 1.061 GB, free: 72.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00166/2.612, allocations: 66.34 kB / 1.061 GB, free: 72.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004262/2.616, allocations: 405.1 kB / 1.062 GB, free: 71.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/2.618, allocations: 248.7 kB / 1.062 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003831/2.618, allocations: 100.7 kB / 1.062 GB, free: 71.69 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007405/2.626, allocations: 3.848 MB / 1.066 GB, free: 68.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.152e-06/2.626, allocations: 1.812 kB / 1.066 GB, free: 68.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01151/2.637, allocations: 2.184 MB / 1.068 GB, free: 66.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (243): * Single equations (assignments): 236 * 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.00143/2.639, allocations: 294 kB / 1.068 GB, free: 65.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01947/2.658, allocations: 13.75 MB / 1.082 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/2.658, allocations: 0 / 1.082 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00918/2.667, allocations: 6.291 MB / 1.088 GB, free: 47.81 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004687/2.672, allocations: 0.835 MB / 1.089 GB, free: 47.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/2.699, allocations: 16.69 MB / 1.105 GB, free: 30.32 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005946/2.705, allocations: 5.419 MB / 1.11 GB, free: 24.91 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.2727/2.978, allocations: 3.03 MB / 1.113 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001997/2.98, allocations: 384 kB / 1.114 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/2.98, allocations: 0 / 1.114 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of Templates: time 0.1601/3.14, allocations: 99.14 MB / 1.21 GB, free: 84.72 MB / 0.4948 GB 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