Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 104.4 kB / 17.74 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 183.1 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2909, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01133/0.3023, allocations: 10.27 MB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008027/0.3104, allocations: 3.874 MB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.3124, allocations: 55.81 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004062/0.3166, allocations: 2.083 MB / 417.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00441/0.321, allocations: 1.634 MB / 419.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.3227, allocations: 0.694 MB / 420 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004988/0.3277, allocations: 3.366 MB / 423.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003315/0.331, allocations: 2.678 MB / 426.1 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002102/0.3331, allocations: 1.257 MB / 427.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002631/0.3358, allocations: 1.764 MB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009691/0.3368, allocations: 260 kB / 429.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002722/0.3395, allocations: 1.127 MB / 430.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001799/0.3413, allocations: 1.578 MB / 432 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002556/0.3439, allocations: 1.86 MB / 433.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0071/0.351, allocations: 5.94 MB / 439.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3511, allocations: 0 / 439.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.3511, allocations: 0 / 439.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001585/0.3513, allocations: 3.938 kB / 439.9 MB, free: 2.238 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008316/0.3596, allocations: 4.129 MB / 444 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3597, allocations: 8.031 kB / 444 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007008/0.3667, allocations: 1.86 MB / 445.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005255/0.372, allocations: 1.913 MB / 447.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002424/0.3723, allocations: 205.2 kB / 448 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.3733, allocations: 271.8 kB / 448.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01902/0.3923, allocations: 9.981 MB / 458.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.3925, allocations: 35.69 kB / 458.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004137/0.3929, allocations: 135.9 kB / 458.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/0.396, allocations: 1.852 MB / 460.2 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.4149, allocations: 8.536 MB / 468.8 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0479/0.4629, allocations: 36.7 MB / 0.4936 GB, free: 14.76 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00997/0.4729, allocations: 3.887 MB / 0.4974 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.4755, allocations: 1.81 MB / 0.4992 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/0.487, allocations: 7.52 MB / 0.5065 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.4871, allocations: 51.5 kB / 0.5066 GB, free: 1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.586e-06/0.4871, allocations: 0 / 0.5066 GB, free: 1 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05401/0.5411, allocations: 17.42 MB / 0.5236 GB, free: 15.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.5412, allocations: 145.5 kB / 0.5237 GB, free: 15.28 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006165/0.5474, allocations: 3.477 MB / 0.5271 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/0.5478, allocations: 45.7 kB / 0.5272 GB, free: 11.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/0.5498, allocations: 2.736 MB / 0.5298 GB, free: 8.973 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000883/0.5507, allocations: 0.6518 MB / 0.5305 GB, free: 8.312 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002095/0.5528, allocations: 1.119 MB / 0.5316 GB, free: 7.184 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.914e-05/0.553, allocations: 305.1 kB / 0.5319 GB, free: 6.883 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003184/0.5562, allocations: 1.947 MB / 0.5338 GB, free: 4.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2437/0.7998, allocations: 5.375 MB / 0.539 GB, free: 127.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009381/0.8093, allocations: 7.933 MB / 0.5468 GB, free: 121.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000227/0.8095, allocations: 35.91 kB / 0.5468 GB, free: 121.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01517/0.8247, allocations: 8.17 MB / 0.5548 GB, free: 119 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.709e-05/0.8249, allocations: 57.94 kB / 0.5548 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.825, allocations: 130.5 kB / 0.555 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003911/0.8289, allocations: 1.292 MB / 0.5562 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004041/0.833, allocations: 1.264 MB / 0.5574 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007791/0.8408, allocations: 6.532 MB / 0.5638 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00484/0.8457, allocations: 295.8 kB / 0.5641 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001109/0.8469, allocations: 345.1 kB / 0.5644 GB, free: 112.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003072/0.85, allocations: 1.817 MB / 0.5662 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000603/0.8506, allocations: 301 kB / 0.5665 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006102/0.8567, allocations: 3.365 MB / 0.5698 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/0.8567, allocations: 20 kB / 0.5698 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.8567, allocations: 4 kB / 0.5698 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.8568, allocations: 11.97 kB / 0.5698 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.8688, allocations: 7.572 MB / 0.5772 GB, free: 99.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-05/0.8689, allocations: 4 kB / 0.5772 GB, free: 99.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.87, allocations: 235.7 kB / 0.5774 GB, free: 99.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/0.8735, allocations: 1.118 MB / 0.5785 GB, free: 98.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002009/0.8737, allocations: 24 kB / 0.5786 GB, free: 98.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006918/0.8806, allocations: 6.18 MB / 0.5846 GB, free: 91.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.8806, allocations: 0 / 0.5846 GB, free: 91.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008203/0.8888, allocations: 5.715 MB / 0.5902 GB, free: 86.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009215/0.8898, allocations: 349.1 kB / 0.5905 GB, free: 85.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003681/0.8902, allocations: 24 kB / 0.5905 GB, free: 85.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.8915, allocations: 95.88 kB / 0.5906 GB, free: 85.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.8917, allocations: 88.81 kB / 0.5907 GB, free: 85.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.8918, allocations: 43.98 kB / 0.5907 GB, free: 85.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.8947, allocations: 2.147 MB / 0.5928 GB, free: 83.52 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8947, allocations: 0 / 0.5928 GB, free: 83.52 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004458/0.8992, allocations: 0.9196 MB / 0.5937 GB, free: 82.61 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004062/0.8996, allocations: 171.8 kB / 0.5939 GB, free: 82.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006462/0.9061, allocations: 4.798 MB / 0.5986 GB, free: 77.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.9061, allocations: 0 / 0.5986 GB, free: 77.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001938/0.9081, allocations: 1.532 MB / 0.6001 GB, free: 76.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.9102, allocations: 359.5 kB / 0.6004 GB, free: 75.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.9221, allocations: 8.38 MB / 0.6086 GB, free: 67.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/0.9243, allocations: 2.859 MB / 0.6114 GB, free: 64.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008391/0.9251, allocations: 259.4 kB / 0.6117 GB, free: 64.23 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.9251, allocations: 0 / 0.6117 GB, free: 64.23 MB / 462.1 MB Notification: Performance of Templates: time 0.07412/0.9993, allocations: 66.83 MB / 0.6769 GB, free: 13.48 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches