Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001066/0.001066, allocations: 181.4 kB / 17.41 MB, free: 4.387 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.33/1.33, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.0007412/0.0007412, allocations: 93.41 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003178, allocations: 11.98 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2075, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3119, allocations: 99.94 MB / 475.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.3122, allocations: 95.95 kB / 475.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4481/0.7603, allocations: 125 MB / 0.5866 GB, free: 28.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.7604, allocations: 0 / 0.5866 GB, free: 28.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004128/0.7608, allocations: 116 kB / 0.5868 GB, free: 28.85 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.02234/0.7832, allocations: 6.56 MB / 0.5932 GB, free: 22.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.7832, allocations: 8.031 kB / 0.5932 GB, free: 22.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02636/0.8096, allocations: 6.664 MB / 0.5997 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.8242, allocations: 6.179 MB / 0.6057 GB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005105/0.8248, allocations: 452.1 kB / 0.6061 GB, free: 8.832 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003455/0.8282, allocations: 0.586 MB / 0.6067 GB, free: 8.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03744/0.8657, allocations: 15.6 MB / 0.6219 GB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004042/0.8661, allocations: 79.52 kB / 0.622 GB, free: 7.398 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002993/0.8692, allocations: 283.8 kB / 0.6223 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002743/0.8719, allocations: 1.616 MB / 0.6239 GB, free: 5.504 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/0.9012, allocations: 13.8 MB / 0.6374 GB, free: 7.676 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2941/1.195, allocations: 64.01 MB / 0.6999 GB, free: 34.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01377/1.209, allocations: 6.359 MB / 0.7061 GB, free: 33.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004432/1.214, allocations: 3.499 MB / 0.7095 GB, free: 33.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/1.235, allocations: 14.23 MB / 0.7234 GB, free: 26.85 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/1.235, allocations: 59.09 kB / 0.7234 GB, free: 26.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 5.621e-06/1.235, allocations: 7.312 kB / 0.7234 GB, free: 26.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1281/1.363, allocations: 41.37 MB / 0.7638 GB, free: 9.199 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/1.363, allocations: 218.6 kB / 0.764 GB, free: 8.949 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00738/1.37, allocations: 5.439 MB / 0.7694 GB, free: 4.523 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000869/1.371, allocations: 69.7 kB / 0.7694 GB, free: 4.449 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002373/1.374, allocations: 4.44 MB / 0.7738 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001486/1.375, allocations: 1.244 MB / 0.775 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005417/1.376, allocations: 172 kB / 0.7751 GB, free: 15.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005841/1.376, allocations: 0.679 MB / 0.7758 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007323/1.384, allocations: 4.538 MB / 0.7802 GB, free: 10.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/1.395, allocations: 9.538 MB / 0.7895 GB, free: 14.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02071/1.416, allocations: 15.14 MB / 0.8043 GB, free: 13.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000191/1.416, allocations: 55.94 kB / 0.8044 GB, free: 13 MB / 458.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2742/1.69, allocations: 18.68 MB / 0.8226 GB, free: 108.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001714/1.691, allocations: 77.16 kB / 0.8227 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003108/1.691, allocations: 177.6 kB / 0.8229 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01922/1.71, allocations: 5.613 MB / 0.8284 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007276/1.717, allocations: 2.049 MB / 0.8304 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03084/1.748, allocations: 23.66 MB / 0.8535 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008028/1.756, allocations: 0.5468 MB / 0.854 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002002/1.758, allocations: 0.5053 MB / 0.8545 GB, free: 105.5 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.007462/1.766, allocations: 3.106 MB / 0.8575 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/1.767, allocations: 0.4991 MB / 0.858 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02695/1.794, allocations: 12.34 MB / 0.8701 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/1.794, allocations: 56.84 kB / 0.8701 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-05/1.794, allocations: 8.312 kB / 0.8701 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.749e-05/1.794, allocations: 16.91 kB / 0.8701 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0483/1.843, allocations: 23.94 MB / 0.8935 GB, free: 91.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.917e-05/1.843, allocations: 7.312 kB / 0.8935 GB, free: 91.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003137/1.846, allocations: 0.5693 MB / 0.8941 GB, free: 91.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01635/1.862, allocations: 4.644 MB / 0.8986 GB, free: 90.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007843/1.863, allocations: 56.86 kB / 0.8987 GB, free: 90.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02061/1.884, allocations: 18.94 MB / 0.9172 GB, free: 71.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/1.884, allocations: 10.72 kB / 0.9172 GB, free: 71.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03108/1.915, allocations: 16.65 MB / 0.9334 GB, free: 55.12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003574/1.919, allocations: 1.225 MB / 0.9346 GB, free: 53.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001935/1.921, allocations: 55.17 kB / 0.9347 GB, free: 53.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004048/1.925, allocations: 251.5 kB / 0.9349 GB, free: 53.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/1.926, allocations: 188.7 kB / 0.9351 GB, free: 53.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006404/1.926, allocations: 86.73 kB / 0.9352 GB, free: 53.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007447/1.934, allocations: 3.378 MB / 0.9385 GB, free: 50.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.934, allocations: 0 / 0.9385 GB, free: 50.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009792/1.944, allocations: 1.703 MB / 0.9402 GB, free: 48.36 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.001095/1.945, allocations: 221 kB / 0.9404 GB, free: 48.17 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01575/1.961, allocations: 10.44 MB / 0.9506 GB, free: 38.06 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/1.961, allocations: 0 / 0.9506 GB, free: 38.06 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005682/1.966, allocations: 3.963 MB / 0.9544 GB, free: 34.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009801/1.976, allocations: 0.6146 MB / 0.955 GB, free: 33.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03464/2.011, allocations: 19.1 MB / 0.9737 GB, free: 14.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009281/2.02, allocations: 4.632 MB / 0.9782 GB, free: 9.941 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002238/2.022, allocations: 419.4 kB / 0.9786 GB, free: 9.535 MB / 458.7 MB Notification: Performance of SimCode: time 2.295e-06/2.023, allocations: 0 / 0.9786 GB, free: 9.535 MB / 458.7 MB Notification: Performance of Templates: time 0.4054/2.428, allocations: 148.4 MB / 1.124 GB, free: 14.12 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches