Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009875/0.0009876, allocations: 199.4 kB / 18.06 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007901/0.0007902, allocations: 101.8 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003328, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3109, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.4795, allocations: 104.7 MB / 0.5013 GB, free: 2.875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003676/0.4799, allocations: 100.4 kB / 0.5014 GB, free: 2.777 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7224/1.202, allocations: 142.3 MB / 0.6403 GB, free: 1.812 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.202, allocations: 0 / 0.6403 GB, free: 1.812 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006606/1.203, allocations: 148 kB / 0.6405 GB, free: 1.668 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.03542/1.238, allocations: 7.851 MB / 0.6481 GB, free: 9.727 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/1.239, allocations: 11.97 kB / 0.6482 GB, free: 9.715 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05646/1.295, allocations: 8.43 MB / 0.6564 GB, free: 1.262 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02875/1.324, allocations: 8.24 MB / 0.6644 GB, free: 8.941 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009707/1.325, allocations: 0.5141 MB / 0.6649 GB, free: 8.426 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004299/1.329, allocations: 0.707 MB / 0.6656 GB, free: 7.719 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3242/1.653, allocations: 17.2 MB / 0.6824 GB, free: 65.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004406/1.654, allocations: 97.73 kB / 0.6825 GB, free: 65.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002039/1.656, allocations: 337.3 kB / 0.6828 GB, free: 65.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/1.658, allocations: 1.463 MB / 0.6843 GB, free: 65.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02986/1.688, allocations: 14.25 MB / 0.6982 GB, free: 64.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08312/1.771, allocations: 73.02 MB / 0.7695 GB, free: 20.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02061/1.792, allocations: 8.607 MB / 0.7779 GB, free: 17.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005325/1.797, allocations: 4.765 MB / 0.7825 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02528/1.823, allocations: 17.54 MB / 0.7997 GB, free: 6.809 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/1.823, allocations: 64.5 kB / 0.7997 GB, free: 6.738 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 6.562e-06/1.823, allocations: 0 / 0.7997 GB, free: 6.738 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.4805/2.303, allocations: 69.17 MB / 0.8673 GB, free: 94.71 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.304, allocations: 373.3 kB / 0.8676 GB, free: 94.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/2.314, allocations: 6.182 MB / 0.8737 GB, free: 93.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009938/2.315, allocations: 87.14 kB / 0.8738 GB, free: 93.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002986/2.318, allocations: 4.866 MB / 0.8785 GB, free: 91.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001834/2.32, allocations: 1.375 MB / 0.8799 GB, free: 90.82 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008426/2.321, allocations: 178.2 kB / 0.88 GB, free: 90.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004353/2.321, allocations: 0.6862 MB / 0.8807 GB, free: 90.49 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008058/2.329, allocations: 5.494 MB / 0.8861 GB, free: 90.46 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01605/2.345, allocations: 10.49 MB / 0.8963 GB, free: 84.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02534/2.371, allocations: 17.1 MB / 0.913 GB, free: 73.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002145/2.371, allocations: 49.34 kB / 0.9131 GB, free: 73.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.04355/2.414, allocations: 21.37 MB / 0.9339 GB, free: 66.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000107/2.415, allocations: 82.88 kB / 0.934 GB, free: 66.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001749/2.415, allocations: 176.7 kB / 0.9342 GB, free: 66.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01739/2.432, allocations: 6.5 MB / 0.9405 GB, free: 65.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007221/2.439, allocations: 2.05 MB / 0.9425 GB, free: 65.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04068/2.48, allocations: 32.41 MB / 0.9742 GB, free: 38.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00906/2.489, allocations: 0.7019 MB / 0.9749 GB, free: 38.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002377/2.492, allocations: 0.5133 MB / 0.9754 GB, free: 37.83 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.01079/2.502, allocations: 3.429 MB / 0.9787 GB, free: 34.81 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002292/2.505, allocations: 0.5823 MB / 0.9793 GB, free: 34.22 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0338/2.539, allocations: 15.49 MB / 0.9944 GB, free: 22.19 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001011/2.539, allocations: 48 kB / 0.9944 GB, free: 22.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.44e-05/2.539, allocations: 19.06 kB / 0.9945 GB, free: 22.13 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.463e-05/2.539, allocations: 18.14 kB / 0.9945 GB, free: 22.13 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3519/2.891, allocations: 30.47 MB / 1.024 GB, free: 84.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-05/2.891, allocations: 2.375 kB / 1.024 GB, free: 84.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/2.894, allocations: 0.5761 MB / 1.025 GB, free: 84.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01739/2.911, allocations: 6.149 MB / 1.031 GB, free: 84.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001036/2.913, allocations: 64.72 kB / 1.031 GB, free: 84.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04133/2.954, allocations: 30.77 MB / 1.061 GB, free: 80.16 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/2.954, allocations: 3.562 kB / 1.061 GB, free: 80.16 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03942/2.993, allocations: 22.73 MB / 1.083 GB, free: 73.67 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002136/2.996, allocations: 0.5975 MB / 1.084 GB, free: 73.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002445/2.998, allocations: 62.12 kB / 1.084 GB, free: 73.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005394/3.003, allocations: 412.7 kB / 1.084 GB, free: 73.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001674/3.005, allocations: 245.7 kB / 1.084 GB, free: 73.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008069/3.006, allocations: 93.95 kB / 1.084 GB, free: 73.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009555/3.016, allocations: 3.905 MB / 1.088 GB, free: 72.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.162e-06/3.016, allocations: 3.781 kB / 1.088 GB, free: 72.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01328/3.029, allocations: 2.183 MB / 1.09 GB, free: 71.89 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.002031/3.031, allocations: 294.4 kB / 1.091 GB, free: 71.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02215/3.053, allocations: 13.92 MB / 1.104 GB, free: 66.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/3.053, allocations: 0 / 1.104 GB, free: 66.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009797/3.063, allocations: 6.364 MB / 1.111 GB, free: 63.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01136/3.074, allocations: 0.8977 MB / 1.111 GB, free: 62.37 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04225/3.117, allocations: 23.13 MB / 1.134 GB, free: 41.67 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006714/3.124, allocations: 5.275 MB / 1.139 GB, free: 37.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/3.126, allocations: 447.3 kB / 1.14 GB, free: 37.27 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/3.126, allocations: 0 / 1.14 GB, free: 37.27 MB / 474.7 MB Notification: Performance of Templates: time 0.5025/3.628, allocations: 207 MB / 1.342 GB, free: 2.129 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches