Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009256/0.0009256, allocations: 98.61 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2231, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.12/0.3432, allocations: 103.9 MB / 0.4936 GB, free: 8.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.3434, allocations: 99.94 kB / 0.4937 GB, free: 8.402 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4869/0.8303, allocations: 141.7 MB / 0.6321 GB, free: 11.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.145e-06/0.8304, allocations: 8 kB / 0.6321 GB, free: 11.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006495/0.8311, allocations: 144 kB / 0.6322 GB, free: 11.34 MB / 410.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.0305/0.8616, allocations: 8.195 MB / 0.6402 GB, free: 3.051 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.8616, allocations: 8.031 kB / 0.6402 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0455/0.9072, allocations: 11.71 MB / 0.6517 GB, free: 7.301 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2735/1.181, allocations: 9.938 MB / 0.6614 GB, free: 59.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004179/1.181, allocations: 0.5181 MB / 0.6619 GB, free: 59.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003353/1.185, allocations: 0.7064 MB / 0.6626 GB, free: 59.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03841/1.223, allocations: 17.38 MB / 0.6795 GB, free: 55.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000468/1.223, allocations: 97.8 kB / 0.6796 GB, free: 55.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/1.225, allocations: 330.7 kB / 0.68 GB, free: 55.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002496/1.228, allocations: 1.454 MB / 0.6814 GB, free: 55.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02868/1.256, allocations: 14.5 MB / 0.6955 GB, free: 55.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08542/1.342, allocations: 73.11 MB / 0.7669 GB, free: 7.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0216/1.364, allocations: 8.771 MB / 0.7755 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02767/1.391, allocations: 17.7 MB / 0.7928 GB, free: 4.793 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.289e-05/1.391, allocations: 71.45 kB / 0.7928 GB, free: 4.719 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 7.003e-06/1.391, allocations: 3.781 kB / 0.7929 GB, free: 4.719 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.4409/1.832, allocations: 69.41 MB / 0.8606 GB, free: 99.56 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.832, allocations: 375.9 kB / 0.861 GB, free: 99.15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008235/1.841, allocations: 5.485 MB / 0.8664 GB, free: 98.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000989/1.842, allocations: 80.52 kB / 0.8664 GB, free: 98.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002931/1.845, allocations: 4.875 MB / 0.8712 GB, free: 96.42 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001807/1.846, allocations: 1.364 MB / 0.8725 GB, free: 95.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006899/1.847, allocations: 182.3 kB / 0.8727 GB, free: 95.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004204/1.848, allocations: 0.6863 MB / 0.8734 GB, free: 95.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007232/1.855, allocations: 5.493 MB / 0.8787 GB, free: 95.27 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009256/1.864, allocations: 10.46 MB / 0.8889 GB, free: 88.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009723/1.874, allocations: 7.412 MB / 0.8962 GB, free: 86.76 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/1.874, allocations: 46.97 kB / 0.8962 GB, free: 86.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.03961/1.914, allocations: 21.36 MB / 0.9171 GB, free: 80.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/1.914, allocations: 88.67 kB / 0.9172 GB, free: 80.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/1.914, allocations: 173.8 kB / 0.9173 GB, free: 80.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01833/1.932, allocations: 6.522 MB / 0.9237 GB, free: 79.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007483/1.94, allocations: 2.049 MB / 0.9257 GB, free: 78.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04022/1.98, allocations: 33.56 MB / 0.9585 GB, free: 50.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009528/1.99, allocations: 0.6918 MB / 0.9592 GB, free: 50.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002439/1.992, allocations: 0.5144 MB / 0.9597 GB, free: 49.94 MB / 474.7 MB 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 () * Number of clocked 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.009824/2.002, allocations: 3.429 MB / 0.963 GB, free: 46.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002205/2.004, allocations: 0.5862 MB / 0.9636 GB, free: 46.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03997/2.044, allocations: 15.48 MB / 0.9787 GB, free: 34.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001307/2.044, allocations: 51.89 kB / 0.9787 GB, free: 34.32 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.06e-05/2.045, allocations: 23.36 kB / 0.9788 GB, free: 34.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001022/2.045, allocations: 23.5 kB / 0.9788 GB, free: 34.29 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.41/2.455, allocations: 30.47 MB / 1.009 GB, free: 88.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-05/2.455, allocations: 2.906 kB / 1.009 GB, free: 88.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003641/2.458, allocations: 0.5727 MB / 1.009 GB, free: 88.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01841/2.477, allocations: 6.156 MB / 1.015 GB, free: 88.91 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/2.478, allocations: 61.72 kB / 1.015 GB, free: 88.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0383/2.516, allocations: 31.93 MB / 1.046 GB, free: 84.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/2.516, allocations: 3.75 kB / 1.046 GB, free: 84.97 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0363/2.553, allocations: 23.13 MB / 1.069 GB, free: 78.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/2.555, allocations: 0.6038 MB / 1.07 GB, free: 78.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/2.557, allocations: 60.83 kB / 1.07 GB, free: 78.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003771/2.56, allocations: 406.3 kB / 1.07 GB, free: 78.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/2.561, allocations: 249.6 kB / 1.07 GB, free: 78.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000341/2.562, allocations: 97.92 kB / 1.07 GB, free: 78.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007913/2.57, allocations: 3.902 MB / 1.074 GB, free: 76.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.304e-06/2.57, allocations: 0 / 1.074 GB, free: 76.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01088/2.581, allocations: 2.172 MB / 1.076 GB, free: 76.56 MB / 474.7 MB 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 () * Number of clocked 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.00125/2.582, allocations: 274.1 kB / 1.077 GB, free: 76.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02029/2.602, allocations: 13.92 MB / 1.09 GB, free: 71.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/2.602, allocations: 0 / 1.09 GB, free: 71.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008986/2.611, allocations: 6.365 MB / 1.096 GB, free: 67.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00493/2.616, allocations: 0.833 MB / 1.097 GB, free: 67.05 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/2.648, allocations: 22.23 MB / 1.119 GB, free: 47.11 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006362/2.655, allocations: 5.414 MB / 1.124 GB, free: 43.13 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006943/2.662, allocations: 3.035 MB / 1.127 GB, free: 41.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001447/2.663, allocations: 390.3 kB / 1.127 GB, free: 40.84 MB / 474.7 MB Notification: Performance of SimCode: time 9.22e-07/2.663, allocations: 0 / 1.127 GB, free: 40.84 MB / 474.7 MB Notification: Performance of Templates: time 0.3767/3.04, allocations: 98.98 MB / 1.224 GB, free: 97.77 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches