Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001394/0.001394, allocations: 179 kB / 18.04 MB, free: 3.629 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 224.2 MB, free: 9.008 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.0008527/0.0008527, allocations: 80.94 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 8 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2282, allocations: 47.57 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.3411, allocations: 99.95 MB / 477 MB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.3414, allocations: 87.95 kB / 477.1 MB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4365/0.7779, allocations: 125 MB / 0.5879 GB, free: 28.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.7779, allocations: 0 / 0.5879 GB, free: 28.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003458/0.7783, allocations: 116 kB / 0.588 GB, free: 28.74 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01945/0.7977, allocations: 6.564 MB / 0.5944 GB, free: 22.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.7978, allocations: 8.031 kB / 0.5945 GB, free: 22.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.026/0.8238, allocations: 6.664 MB / 0.601 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01409/0.838, allocations: 6.16 MB / 0.607 GB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004641/0.8385, allocations: 452.1 kB / 0.6074 GB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003207/0.8417, allocations: 0.5898 MB / 0.608 GB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0376/0.8793, allocations: 15.6 MB / 0.6232 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005018/0.8799, allocations: 75.53 kB / 0.6233 GB, free: 7.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00348/0.8834, allocations: 283.8 kB / 0.6236 GB, free: 7.035 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00288/0.8863, allocations: 1.624 MB / 0.6251 GB, free: 5.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03042/0.9167, allocations: 13.8 MB / 0.6386 GB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2525/1.169, allocations: 64.01 MB / 0.7011 GB, free: 35.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/1.182, allocations: 6.35 MB / 0.7073 GB, free: 33.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003741/1.186, allocations: 3.497 MB / 0.7107 GB, free: 33.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/1.204, allocations: 14.22 MB / 0.7246 GB, free: 26.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.153e-05/1.204, allocations: 65.84 kB / 0.7247 GB, free: 26.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 6.001e-06/1.204, allocations: 0 / 0.7247 GB, free: 26.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1271/1.331, allocations: 41.38 MB / 0.7651 GB, free: 9.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/1.332, allocations: 215.7 kB / 0.7653 GB, free: 8.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008979/1.341, allocations: 5.445 MB / 0.7706 GB, free: 4.391 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006244/1.341, allocations: 73.14 kB / 0.7707 GB, free: 4.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002397/1.344, allocations: 4.437 MB / 0.775 GB, free: 464 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001403/1.345, allocations: 1.246 MB / 0.7762 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004886/1.346, allocations: 168 kB / 0.7764 GB, free: 15.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004609/1.346, allocations: 0.6867 MB / 0.7771 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006435/1.352, allocations: 4.538 MB / 0.7815 GB, free: 10.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.363, allocations: 9.533 MB / 0.7908 GB, free: 14.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01841/1.382, allocations: 15.15 MB / 0.8056 GB, free: 12.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001359/1.382, allocations: 52 kB / 0.8057 GB, free: 12.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2482/1.63, allocations: 18.68 MB / 0.8239 GB, free: 110.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/1.63, allocations: 78.62 kB / 0.824 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001945/1.63, allocations: 177 kB / 0.8241 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01938/1.65, allocations: 5.612 MB / 0.8296 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007052/1.657, allocations: 2.045 MB / 0.8316 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0277/1.685, allocations: 23.66 MB / 0.8547 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007306/1.692, allocations: 0.5355 MB / 0.8552 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001657/1.694, allocations: 0.5099 MB / 0.8557 GB, free: 107.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1060): * Single equations (assignments): 1052 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006325/1.7, allocations: 3.11 MB / 0.8588 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.701, allocations: 0.495 MB / 0.8593 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02638/1.728, allocations: 12.35 MB / 0.8713 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.246e-05/1.728, allocations: 55.02 kB / 0.8714 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/1.728, allocations: 9.719 kB / 0.8714 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.577e-05/1.728, allocations: 17.09 kB / 0.8714 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04576/1.774, allocations: 23.94 MB / 0.8948 GB, free: 93.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.534e-05/1.774, allocations: 3.406 kB / 0.8948 GB, free: 93.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/1.777, allocations: 0.5613 MB / 0.8953 GB, free: 93.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01641/1.793, allocations: 4.65 MB / 0.8999 GB, free: 90.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006436/1.794, allocations: 59.98 kB / 0.8999 GB, free: 90.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01984/1.814, allocations: 18.94 MB / 0.9184 GB, free: 71.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/1.814, allocations: 15.44 kB / 0.9185 GB, free: 71.76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02922/1.843, allocations: 16.65 MB / 0.9347 GB, free: 55.28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003231/1.846, allocations: 1.221 MB / 0.9359 GB, free: 54.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001533/1.848, allocations: 59.19 kB / 0.936 GB, free: 54.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002875/1.851, allocations: 247.6 kB / 0.9362 GB, free: 53.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006132/1.851, allocations: 192.6 kB / 0.9364 GB, free: 53.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.851, allocations: 83.28 kB / 0.9365 GB, free: 53.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004994/1.856, allocations: 3.381 MB / 0.9398 GB, free: 50.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.856, allocations: 0 / 0.9398 GB, free: 50.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007863/1.864, allocations: 1.701 MB / 0.9414 GB, free: 48.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006402/1.865, allocations: 221.6 kB / 0.9416 GB, free: 48.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01319/1.878, allocations: 10.45 MB / 0.9518 GB, free: 38.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/1.878, allocations: 0 / 0.9518 GB, free: 38.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004895/1.883, allocations: 3.949 MB / 0.9557 GB, free: 34.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007878/1.891, allocations: 0.6176 MB / 0.9563 GB, free: 33.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02481/1.916, allocations: 18.38 MB / 0.9742 GB, free: 15.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005416/1.921, allocations: 4.628 MB / 0.9788 GB, free: 10.83 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.2065/2.128, allocations: 2.981 MB / 0.9817 GB, free: 104.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001781/2.13, allocations: 356 kB / 0.982 GB, free: 104.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/2.13, allocations: 0 / 0.982 GB, free: 104.7 MB / 458.7 MB Notification: Performance of Templates: time 0.1181/2.248, allocations: 73.55 MB / 1.054 GB, free: 87.31 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches