Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.567/1.567, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008467/0.0008466, allocations: 100.1 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002371, allocations: 8 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2276, allocations: 47.57 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1139/0.3415, allocations: 103.4 MB / 479.3 MB, free: 9.184 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.3419, allocations: 103.9 kB / 479.4 MB, free: 9.082 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4646/0.8064, allocations: 111.2 MB / 0.5767 GB, free: 39.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.8065, allocations: 0 / 0.5767 GB, free: 39.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003775/0.8069, allocations: 104 kB / 0.5768 GB, free: 39.8 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01885/0.8258, allocations: 5.382 MB / 0.5821 GB, free: 34.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.8258, allocations: 12.03 kB / 0.5821 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02569/0.8515, allocations: 6.892 MB / 0.5888 GB, free: 27.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02033/0.8719, allocations: 6.804 MB / 0.5955 GB, free: 20.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004236/0.8724, allocations: 390.3 kB / 0.5958 GB, free: 20.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002961/0.8754, allocations: 0.5153 MB / 0.5963 GB, free: 19.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/0.9045, allocations: 12.65 MB / 0.6087 GB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001937/0.9047, allocations: 63.45 kB / 0.6088 GB, free: 5.973 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007944/0.9055, allocations: 243.9 kB / 0.609 GB, free: 5.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001167/0.9067, allocations: 1.044 MB / 0.61 GB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02231/0.929, allocations: 10.53 MB / 0.6203 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3121/1.241, allocations: 50.22 MB / 0.6693 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0122/1.253, allocations: 4.807 MB / 0.674 GB, free: 49.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/1.266, allocations: 7.049 MB / 0.6809 GB, free: 47.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/1.266, allocations: 56.72 kB / 0.681 GB, free: 47.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 6.081e-06/1.266, allocations: 0 / 0.681 GB, free: 47.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.06752/1.334, allocations: 20.33 MB / 0.7008 GB, free: 44.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.6e-05/1.334, allocations: 200.4 kB / 0.701 GB, free: 44.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005812/1.34, allocations: 3.957 MB / 0.7049 GB, free: 43.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004144/1.34, allocations: 58.61 kB / 0.7049 GB, free: 43.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001979/1.342, allocations: 3.572 MB / 0.7084 GB, free: 41.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008458/1.343, allocations: 0.8381 MB / 0.7093 GB, free: 41.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/1.343, allocations: 129.5 kB / 0.7094 GB, free: 41.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002968/1.343, allocations: 0.572 MB / 0.7099 GB, free: 40.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/1.346, allocations: 2.163 MB / 0.712 GB, free: 40.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004397/1.351, allocations: 5.913 MB / 0.7178 GB, free: 35.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004358/1.355, allocations: 3.528 MB / 0.7213 GB, free: 33.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.083e-05/1.355, allocations: 34.72 kB / 0.7213 GB, free: 33.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01531/1.37, allocations: 8.794 MB / 0.7299 GB, free: 30.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.026e-05/1.371, allocations: 66.34 kB / 0.73 GB, free: 30.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001671/1.371, allocations: 133.9 kB / 0.7301 GB, free: 30.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/1.374, allocations: 1.046 MB / 0.7311 GB, free: 30.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/1.379, allocations: 1.421 MB / 0.7325 GB, free: 30.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008886/1.387, allocations: 7.134 MB / 0.7395 GB, free: 24.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005721/1.393, allocations: 332.1 kB / 0.7398 GB, free: 24.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.394, allocations: 384.1 kB / 0.7401 GB, free: 23.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005731/1.4, allocations: 2.491 MB / 0.7426 GB, free: 21.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.401, allocations: 418.6 kB / 0.743 GB, free: 21.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007117/1.409, allocations: 3.646 MB / 0.7465 GB, free: 18.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.639e-05/1.409, allocations: 25.17 kB / 0.7466 GB, free: 18.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.409, allocations: 8 kB / 0.7466 GB, free: 18.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/1.409, allocations: 13.98 kB / 0.7466 GB, free: 18.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01918/1.428, allocations: 9.883 MB / 0.7562 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/1.428, allocations: 4.656 kB / 0.7562 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/1.429, allocations: 353.5 kB / 0.7566 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/1.432, allocations: 0.8074 MB / 0.7574 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/1.432, allocations: 40 kB / 0.7574 GB, free: 9.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007279/1.44, allocations: 5.837 MB / 0.7631 GB, free: 3.863 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.44, allocations: 7 kB / 0.7631 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.453, allocations: 7.154 MB / 0.7701 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002874/1.456, allocations: 0.7167 MB / 0.7708 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008031/1.456, allocations: 44.06 kB / 0.7708 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001656/1.458, allocations: 97.81 kB / 0.7709 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003519/1.458, allocations: 142.7 kB / 0.7711 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/1.459, allocations: 71.8 kB / 0.7711 GB, free: 12.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005183/1.464, allocations: 2.782 MB / 0.7738 GB, free: 10.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.464, allocations: 0 / 0.7738 GB, free: 10.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008107/1.472, allocations: 1.186 MB / 0.775 GB, free: 9.301 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007595/1.473, allocations: 228.9 kB / 0.7752 GB, free: 9.098 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009534/1.482, allocations: 5.405 MB / 0.7805 GB, free: 4.062 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.482, allocations: 1.938 kB / 0.7805 GB, free: 4.062 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/1.485, allocations: 1.796 MB / 0.7823 GB, free: 2.254 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/1.488, allocations: 0.5251 MB / 0.7828 GB, free: 1.754 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02289/1.511, allocations: 12.94 MB / 0.7954 GB, free: 4.723 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005192/1.516, allocations: 3.99 MB / 0.7993 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00546/1.522, allocations: 1.938 MB / 0.8012 GB, free: 14.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008169/1.522, allocations: 271.3 kB / 0.8015 GB, free: 14.52 MB / 458.7 MB Notification: Performance of SimCode: time 7.81e-07/1.522, allocations: 4 kB / 0.8015 GB, free: 14.52 MB / 458.7 MB Notification: Performance of Templates: time 0.3277/1.85, allocations: 41.58 MB / 0.8421 GB, free: 115.8 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches