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.001965/0.001965, allocations: 113.8 kB / 17.06 MB, free: 5.777 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.001675/0.001675, allocations: 198.8 kB / 18.01 MB, free: 4.918 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009147/0.0009148, allocations: 35.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2526, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01139/0.2641, allocations: 10.28 MB / 411 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008486/0.2726, allocations: 3.874 MB / 414.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00153/0.2741, allocations: 55.81 kB / 414.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004178/0.2784, allocations: 2.075 MB / 417 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00396/0.2824, allocations: 1.642 MB / 418.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.284, allocations: 0.6901 MB / 419.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004828/0.2889, allocations: 3.36 MB / 422.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003831/0.2927, allocations: 2.685 MB / 425.4 MB, free: 88 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.2948, allocations: 1.265 MB / 426.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.2974, allocations: 1.756 MB / 428.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007291/0.2982, allocations: 260 kB / 428.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.3004, allocations: 1.127 MB / 429.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001586/0.302, allocations: 1.566 MB / 431.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.3043, allocations: 1.868 MB / 433.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006219/0.3105, allocations: 5.956 MB / 439.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3105, allocations: 0 / 439.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3105, allocations: 0 / 439.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001505/0.3107, allocations: 0 / 439.2 MB, free: 2.242 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.007476/0.3182, allocations: 4.239 MB / 443.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3182, allocations: 12.03 kB / 443.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006414/0.3246, allocations: 1.874 MB / 445.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003075/0.3277, allocations: 1.921 MB / 447.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.3279, allocations: 205.2 kB / 447.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004402/0.3283, allocations: 275.8 kB / 447.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.3446, allocations: 9.981 MB / 457.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.272e-05/0.3447, allocations: 39.69 kB / 457.7 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003318/0.3451, allocations: 135.9 kB / 457.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002921/0.348, allocations: 1.852 MB / 459.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01641/0.3644, allocations: 8.536 MB / 468.2 MB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04315/0.4076, allocations: 36.76 MB / 0.4932 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009799/0.4175, allocations: 3.887 MB / 0.497 GB, free: 10.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002536/0.4201, allocations: 1.806 MB / 0.4987 GB, free: 8.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/0.4313, allocations: 7.533 MB / 0.5061 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.4314, allocations: 51.5 kB / 0.5061 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.148e-06/0.4314, allocations: 0 / 0.5061 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05056/0.4819, allocations: 17.62 MB / 0.5233 GB, free: 15.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.4821, allocations: 149.5 kB / 0.5235 GB, free: 14.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004476/0.4865, allocations: 3.482 MB / 0.5269 GB, free: 11.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002677/0.4868, allocations: 53.64 kB / 0.5269 GB, free: 11.36 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002171/0.489, allocations: 2.854 MB / 0.5297 GB, free: 8.477 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00088/0.4899, allocations: 0.6706 MB / 0.5304 GB, free: 7.801 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.4913, allocations: 1.128 MB / 0.5315 GB, free: 6.664 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.171e-05/0.4914, allocations: 305.1 kB / 0.5318 GB, free: 6.363 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002806/0.4942, allocations: 1.951 MB / 0.5337 GB, free: 4.406 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.208/0.7022, allocations: 5.375 MB / 0.5389 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008808/0.7111, allocations: 7.926 MB / 0.5467 GB, free: 120.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002126/0.7114, allocations: 34.09 kB / 0.5467 GB, free: 120.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01496/0.7263, allocations: 8.194 MB / 0.5547 GB, free: 118.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.831e-05/0.7264, allocations: 57.34 kB / 0.5548 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.914e-05/0.7265, allocations: 124.2 kB / 0.5549 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003632/0.7302, allocations: 1.3 MB / 0.5561 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/0.7338, allocations: 1.261 MB / 0.5574 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007751/0.7415, allocations: 6.538 MB / 0.5638 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004139/0.7457, allocations: 293.9 kB / 0.564 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005369/0.7463, allocations: 348.5 kB / 0.5644 GB, free: 111.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.002201/0.7485, allocations: 1.812 MB / 0.5661 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.749, allocations: 320.8 kB / 0.5664 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006147/0.7551, allocations: 3.371 MB / 0.5697 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.548e-05/0.7552, allocations: 20 kB / 0.5698 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.7552, allocations: 4 kB / 0.5698 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.7552, allocations: 7.969 kB / 0.5698 GB, free: 106.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.7668, allocations: 7.58 MB / 0.5772 GB, free: 98.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.7668, allocations: 0 / 0.5772 GB, free: 98.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.7679, allocations: 235.7 kB / 0.5774 GB, free: 98.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003366/0.7712, allocations: 1.12 MB / 0.5785 GB, free: 97.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.7714, allocations: 24 kB / 0.5785 GB, free: 97.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006797/0.7782, allocations: 6.177 MB / 0.5845 GB, free: 90.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7782, allocations: 0 / 0.5845 GB, free: 90.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008126/0.7864, allocations: 5.733 MB / 0.5901 GB, free: 85.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007329/0.7871, allocations: 369.2 kB / 0.5905 GB, free: 84.87 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003121/0.7875, allocations: 23.2 kB / 0.5905 GB, free: 84.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.7887, allocations: 91.88 kB / 0.5906 GB, free: 84.76 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002376/0.789, allocations: 92.22 kB / 0.5907 GB, free: 84.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.7891, allocations: 47.98 kB / 0.5907 GB, free: 84.63 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002402/0.7915, allocations: 2.142 MB / 0.5928 GB, free: 82.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7915, allocations: 0 / 0.5928 GB, free: 82.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003787/0.7953, allocations: 0.9221 MB / 0.5937 GB, free: 81.58 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.0003481/0.7956, allocations: 175.4 kB / 0.5939 GB, free: 81.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005864/0.8015, allocations: 4.799 MB / 0.5986 GB, free: 76.63 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.8015, allocations: 0 / 0.5986 GB, free: 76.63 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.8035, allocations: 1.53 MB / 0.6001 GB, free: 75.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.8057, allocations: 357.9 kB / 0.6004 GB, free: 74.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.817, allocations: 8.12 MB / 0.6084 GB, free: 66.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.8193, allocations: 2.853 MB / 0.6111 GB, free: 63.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003194/0.8225, allocations: 1.703 MB / 0.6128 GB, free: 62.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004969/0.823, allocations: 215.4 kB / 0.613 GB, free: 61.81 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.823, allocations: 4 kB / 0.613 GB, free: 61.8 MB / 462.1 MB Notification: Performance of Templates: time 0.04669/0.8697, allocations: 31.14 MB / 0.6434 GB, free: 30.88 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/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