Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.463/1.463, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008853/0.0008854, allocations: 91.84 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.945e-05, allocations: 4 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4609, allocations: 101.4 MB / 495.6 MB, free: 2.176 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.4612, allocations: 87.78 kB / 495.7 MB, free: 2.094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6111/1.072, allocations: 128.6 MB / 0.6096 GB, free: 90.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.072, allocations: 0 / 0.6096 GB, free: 90.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003593/1.073, allocations: 115.9 kB / 0.6098 GB, free: 90.93 MB / 426.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.01866/1.091, allocations: 6.324 MB / 0.6159 GB, free: 86.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/1.091, allocations: 11.56 kB / 0.6159 GB, free: 86.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03169/1.123, allocations: 8.305 MB / 0.6241 GB, free: 79.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01783/1.141, allocations: 6.968 MB / 0.6309 GB, free: 72.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004286/1.141, allocations: 450.3 kB / 0.6313 GB, free: 72.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003089/1.145, allocations: 0.5922 MB / 0.6319 GB, free: 71.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03438/1.179, allocations: 15.6 MB / 0.6471 GB, free: 55.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003799/1.179, allocations: 63.41 kB / 0.6472 GB, free: 55.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00269/1.182, allocations: 284.7 kB / 0.6474 GB, free: 54.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002257/1.184, allocations: 1.626 MB / 0.649 GB, free: 53.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02767/1.212, allocations: 13.77 MB / 0.6625 GB, free: 39.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3921/1.604, allocations: 64.03 MB / 0.725 GB, free: 58.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01572/1.62, allocations: 6.383 MB / 0.7312 GB, free: 57.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0056/1.626, allocations: 3.468 MB / 0.7346 GB, free: 57.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02486/1.651, allocations: 14.31 MB / 0.7486 GB, free: 54.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.017e-05/1.651, allocations: 54.59 kB / 0.7486 GB, free: 54.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.574e-06/1.651, allocations: 2.188 kB / 0.7486 GB, free: 54.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.09226/1.743, allocations: 29.56 MB / 0.7775 GB, free: 47.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/1.743, allocations: 208.8 kB / 0.7777 GB, free: 47.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009402/1.753, allocations: 4.771 MB / 0.7824 GB, free: 46.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007645/1.753, allocations: 76.67 kB / 0.7824 GB, free: 45.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003027/1.756, allocations: 4.434 MB / 0.7868 GB, free: 42.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/1.758, allocations: 1.245 MB / 0.788 GB, free: 41.65 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/1.759, allocations: 177.9 kB / 0.7881 GB, free: 41.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008737/1.76, allocations: 0.6785 MB / 0.7888 GB, free: 41.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007758/1.768, allocations: 4.459 MB / 0.7932 GB, free: 39.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/1.779, allocations: 9.426 MB / 0.8024 GB, free: 31.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009725/1.789, allocations: 6.402 MB / 0.8086 GB, free: 27.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001943/1.789, allocations: 48 kB / 0.8087 GB, free: 27.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04401/1.833, allocations: 18.52 MB / 0.8268 GB, free: 13.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002497/1.833, allocations: 81 kB / 0.8268 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003706/1.834, allocations: 176 kB / 0.827 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02282/1.857, allocations: 5.631 MB / 0.8325 GB, free: 9.562 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007639/1.864, allocations: 2.048 MB / 0.8345 GB, free: 7.801 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03203/1.896, allocations: 23.63 MB / 0.8576 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008548/1.905, allocations: 0.5397 MB / 0.8581 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002374/1.907, allocations: 0.5009 MB / 0.8586 GB, free: 14.91 MB / 474.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 () * 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.003356/1.911, allocations: 0.7545 MB / 0.8593 GB, free: 14.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/1.912, allocations: 0.4957 MB / 0.8598 GB, free: 13.65 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03344/1.946, allocations: 12.28 MB / 0.8718 GB, free: 1.309 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001203/1.946, allocations: 59.94 kB / 0.8719 GB, free: 1.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.047e-05/1.946, allocations: 8 kB / 0.8719 GB, free: 1.242 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.89e-05/1.946, allocations: 11.95 kB / 0.8719 GB, free: 1.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05877/2.005, allocations: 23.85 MB / 0.8952 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.404e-05/2.005, allocations: 4 kB / 0.8952 GB, free: 8.91 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003275/2.008, allocations: 0.5732 MB / 0.8957 GB, free: 8.336 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01921/2.027, allocations: 4.65 MB / 0.9003 GB, free: 3.676 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009029/2.028, allocations: 52 kB / 0.9003 GB, free: 3.625 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2831/2.312, allocations: 18.92 MB / 0.9188 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.719e-06/2.312, allocations: 9.031 kB / 0.9188 GB, free: 149.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03541/2.347, allocations: 17.26 MB / 0.9357 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/2.349, allocations: 0.5308 MB / 0.9362 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002214/2.351, allocations: 54.62 kB / 0.9362 GB, free: 144.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004312/2.355, allocations: 252.5 kB / 0.9365 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001059/2.356, allocations: 192.7 kB / 0.9366 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005234/2.357, allocations: 85.19 kB / 0.9367 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006906/2.364, allocations: 3.308 MB / 0.94 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/2.364, allocations: 0 / 0.94 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01018/2.374, allocations: 1.703 MB / 0.9416 GB, free: 143.2 MB / 0.4948 GB 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 () * 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.001178/2.375, allocations: 215.6 kB / 0.9418 GB, free: 143 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01705/2.392, allocations: 10.32 MB / 0.9519 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/2.392, allocations: 2.281 kB / 0.9519 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006172/2.399, allocations: 3.903 MB / 0.9557 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004281/2.403, allocations: 0.5846 MB / 0.9563 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/2.433, allocations: 13.44 MB / 0.9694 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008149/2.441, allocations: 4.748 MB / 0.9741 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008998/2.45, allocations: 2.985 MB / 0.977 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001922/2.452, allocations: 351.7 kB / 0.9773 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/2.452, allocations: 0 / 0.9773 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.1237/2.575, allocations: 73.32 MB / 1.049 GB, free: 65.48 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches