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.002071/0.002071, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 85.72 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.252e-05/2.266e-05, allocations: 4 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3447, allocations: 47.56 MB / 362.3 MB, free: 45.8 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.5071, allocations: 99.03 MB / 461.4 MB, free: 3.242 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5074, allocations: 87.95 kB / 461.4 MB, free: 3.156 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.787/1.294, allocations: 124.5 MB / 0.5722 GB, free: 69.34 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.815e-06/1.295, allocations: 0 / 0.5722 GB, free: 69.34 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000395/1.295, allocations: 116 kB / 0.5723 GB, free: 69.23 MB / 395.1 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.02591/1.321, allocations: 6.321 MB / 0.5785 GB, free: 62.85 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/1.321, allocations: 12.03 kB / 0.5785 GB, free: 62.84 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05943/1.38, allocations: 8.311 MB / 0.5866 GB, free: 54.5 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02758/1.408, allocations: 7.289 MB / 0.5938 GB, free: 47.22 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004035/1.409, allocations: 196 kB / 0.5939 GB, free: 47.03 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003805/1.412, allocations: 347.9 kB / 0.5943 GB, free: 46.69 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02412/1.437, allocations: 10.12 MB / 0.6042 GB, free: 36.57 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03536/1.472, allocations: 14.07 MB / 0.6179 GB, free: 21.34 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003315/1.472, allocations: 79.23 kB / 0.618 GB, free: 21.26 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002456/1.475, allocations: 36 kB / 0.618 GB, free: 21.22 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00322/1.478, allocations: 1.615 MB / 0.6196 GB, free: 19.61 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4169/1.895, allocations: 61.51 MB / 0.6797 GB, free: 52.4 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/1.906, allocations: 5.55 MB / 0.6851 GB, free: 51.17 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007144/1.913, allocations: 3.367 MB / 0.6884 GB, free: 51.13 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03764/1.951, allocations: 14.02 MB / 0.7021 GB, free: 47.5 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.851e-05/1.951, allocations: 63.88 kB / 0.7021 GB, free: 47.45 MB / 411.1 MB Notification: Performance of pre-optimization done (n=286): time 7.404e-06/1.951, allocations: 1.906 kB / 0.7021 GB, free: 47.45 MB / 411.1 MB Notification: Performance of matching and sorting (n=336): time 0.1343/2.085, allocations: 30.93 MB / 0.7323 GB, free: 36.94 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/2.085, allocations: 213.8 kB / 0.7325 GB, free: 36.71 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009986/2.095, allocations: 4.301 MB / 0.7367 GB, free: 35.18 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008844/2.096, allocations: 25.7 kB / 0.7367 GB, free: 35.15 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003817/2.1, allocations: 4.446 MB / 0.7411 GB, free: 31.62 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002028/2.102, allocations: 1.213 MB / 0.7423 GB, free: 30.72 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001171/2.103, allocations: 2.531 kB / 0.7423 GB, free: 30.72 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006845/2.104, allocations: 0.7026 MB / 0.743 GB, free: 30.24 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009558/2.114, allocations: 4.366 MB / 0.7472 GB, free: 26.71 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01383/2.127, allocations: 9.572 MB / 0.7566 GB, free: 15.35 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.141, allocations: 6.352 MB / 0.7628 GB, free: 10.23 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002163/2.142, allocations: 56 kB / 0.7628 GB, free: 10.18 MB / 411.1 MB Notification: Performance of matching and sorting (n=1199) (initialization): time 0.07279/2.214, allocations: 17.62 MB / 0.78 GB, free: 12.65 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001777/2.215, allocations: 84 kB / 0.7801 GB, free: 12.57 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003793/2.215, allocations: 184 kB / 0.7803 GB, free: 12.39 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04173/2.257, allocations: 5.629 MB / 0.7858 GB, free: 8.988 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01482/2.272, allocations: 2.133 MB / 0.7879 GB, free: 7.152 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05275/2.325, allocations: 21.63 MB / 0.809 GB, free: 1.332 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01161/2.336, allocations: 400.2 kB / 0.8094 GB, free: 0.9414 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002503/2.339, allocations: 0.5273 MB / 0.8099 GB, free: 424 kB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 (1108): * Single equations (assignments): 1100 * 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.003443/2.342, allocations: 0.5645 MB / 0.8104 GB, free: 15.84 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001586/2.344, allocations: 477.8 kB / 0.8109 GB, free: 15.36 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05807/2.402, allocations: 12.02 MB / 0.8226 GB, free: 3.277 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001625/2.402, allocations: 59.72 kB / 0.8227 GB, free: 3.223 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/2.402, allocations: 8 kB / 0.8227 GB, free: 3.215 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.566e-05/2.402, allocations: 19.95 kB / 0.8227 GB, free: 3.195 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3814/2.784, allocations: 22.46 MB / 0.8447 GB, free: 119.6 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.405e-05/2.784, allocations: 5.5 kB / 0.8447 GB, free: 119.6 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005817/2.79, allocations: 0.5657 MB / 0.8452 GB, free: 119.6 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03576/2.825, allocations: 4.641 MB / 0.8497 GB, free: 119.6 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008321/2.826, allocations: 10.47 kB / 0.8498 GB, free: 119.6 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0347/2.861, allocations: 17.34 MB / 0.8667 GB, free: 114 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/2.861, allocations: 10 kB / 0.8667 GB, free: 114 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05536/2.916, allocations: 16.97 MB / 0.8833 GB, free: 107.5 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0046/2.921, allocations: 1.179 MB / 0.8844 GB, free: 107.2 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001557/2.923, allocations: 7.406 kB / 0.8844 GB, free: 107.2 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005609/2.928, allocations: 209.3 kB / 0.8846 GB, free: 107.2 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001074/2.929, allocations: 199.2 kB / 0.8848 GB, free: 107.1 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004247/2.93, allocations: 77.34 kB / 0.8849 GB, free: 107.1 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.00671/2.937, allocations: 2.864 MB / 0.8877 GB, free: 106.1 MB / 459.1 MB Notification: Performance of sort global known variables: time 6.51e-07/2.937, allocations: 0 / 0.8877 GB, free: 106.1 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01141/2.948, allocations: 1.491 MB / 0.8891 GB, free: 106.1 MB / 459.1 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 () * 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.001257/2.949, allocations: 166.2 kB / 0.8893 GB, free: 106 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.02064/2.97, allocations: 10.01 MB / 0.8991 GB, free: 101.3 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/2.97, allocations: 1.875 kB / 0.8991 GB, free: 101.3 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007948/2.978, allocations: 3.827 MB / 0.9028 GB, free: 97.79 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004569/2.983, allocations: 462.4 kB / 0.9033 GB, free: 97.4 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03551/3.018, allocations: 14.04 MB / 0.917 GB, free: 84.93 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01159/3.03, allocations: 4.759 MB / 0.9216 GB, free: 81.4 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002999/3.033, allocations: 409.5 kB / 0.922 GB, free: 81.02 MB / 459.1 MB Notification: Performance of SimCode: time 2.034e-06/3.033, allocations: 0 / 0.922 GB, free: 81.02 MB / 459.1 MB Notification: Performance of Templates: time 0.5637/3.597, allocations: 139.9 MB / 1.059 GB, free: 85.61 MB / 459.1 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