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.0007727/0.0007727, allocations: 91.78 kB / 17.31 MB, free: 6.535 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.0008265/0.0008264, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.115/1.115, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002178/0.0002179, allocations: 11.94 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06992/0.07015, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1471/0.2173, allocations: 33.74 MB / 386.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.2293, allocations: 7.85 MB / 394.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.2336, allocations: 144.5 kB / 394.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008289/0.2345, allocations: 380.2 kB / 394.6 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00272/0.2372, allocations: 1.538 MB / 396.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.2382, allocations: 0.6242 MB / 396.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.2414, allocations: 4.773 MB / 401.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003508/0.2449, allocations: 3.739 MB / 405.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000831/0.2458, allocations: 0.9579 MB / 406.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.2472, allocations: 1.671 MB / 407.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001981/0.2474, allocations: 120 kB / 408 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.2488, allocations: 1.061 MB / 409.1 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009672/0.2498, allocations: 1.441 MB / 410.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.2509, allocations: 1.705 MB / 412.2 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003111/0.2541, allocations: 4.495 MB / 416.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.2541, allocations: 0 / 416.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2541, allocations: 0 / 416.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.2541, allocations: 0 / 416.7 MB, free: 4.098 MB / 318.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.00443/0.2585, allocations: 3.374 MB / 420.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.2586, allocations: 15.97 kB / 420.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00574/0.2643, allocations: 1.895 MB / 422 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002332/0.2667, allocations: 1.886 MB / 423.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.2668, allocations: 209.1 kB / 424.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004117/0.2672, allocations: 267.8 kB / 424.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.2807, allocations: 9.993 MB / 434.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.837e-05/0.2808, allocations: 39.69 kB / 434.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002937/0.2811, allocations: 131.9 kB / 434.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002619/0.2837, allocations: 1.852 MB / 436.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.2973, allocations: 8.554 MB / 444.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03034/0.3277, allocations: 36.85 MB / 481.8 MB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008608/0.3363, allocations: 3.894 MB / 485.7 MB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001959/0.3383, allocations: 1.806 MB / 487.5 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008092/0.3464, allocations: 7.516 MB / 495 MB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.3464, allocations: 59.48 kB / 495 MB, free: 3.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 2.605e-06/0.3465, allocations: 0 / 495 MB, free: 3.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.04403/0.3905, allocations: 17.37 MB / 0.5004 GB, free: 1.922 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.3906, allocations: 145.7 kB / 0.5005 GB, free: 1.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.3941, allocations: 3.481 MB / 0.5039 GB, free: 14.26 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3942, allocations: 45.7 kB / 0.504 GB, free: 14.21 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/0.3957, allocations: 2.739 MB / 0.5067 GB, free: 11.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004428/0.3961, allocations: 0.6441 MB / 0.5073 GB, free: 10.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004756/0.3966, allocations: 482.2 kB / 0.5077 GB, free: 10.31 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.631e-05/0.3967, allocations: 309.1 kB / 0.508 GB, free: 10 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/0.3991, allocations: 1.951 MB / 0.5099 GB, free: 8.047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004172/0.4033, allocations: 5.37 MB / 0.5152 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007063/0.4104, allocations: 7.927 MB / 0.5229 GB, free: 7.336 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.923e-05/0.4104, allocations: 39.94 kB / 0.523 GB, free: 7.297 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.1405/0.5509, allocations: 8.165 MB / 0.5309 GB, free: 144.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.957e-05/0.551, allocations: 55.88 kB / 0.531 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.5512, allocations: 122.1 kB / 0.5311 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/0.5551, allocations: 1.302 MB / 0.5324 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003431/0.5585, allocations: 1.26 MB / 0.5336 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007477/0.566, allocations: 6.097 MB / 0.5396 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003119/0.5691, allocations: 301.5 kB / 0.5399 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003548/0.5695, allocations: 342 kB / 0.5402 GB, free: 143.2 MB / 446.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.002051/0.5716, allocations: 1.812 MB / 0.542 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.5719, allocations: 306.9 kB / 0.5422 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006026/0.5779, allocations: 3.365 MB / 0.5455 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.208e-05/0.578, allocations: 18.59 kB / 0.5455 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.578, allocations: 8.312 kB / 0.5456 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.578, allocations: 8.812 kB / 0.5456 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009879/0.5879, allocations: 7.599 MB / 0.553 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5879, allocations: 0 / 0.553 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008813/0.5888, allocations: 245.2 kB / 0.5532 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003121/0.5919, allocations: 1.126 MB / 0.5543 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.431e-05/0.592, allocations: 27.81 kB / 0.5543 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005893/0.5979, allocations: 5.723 MB / 0.5599 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.5979, allocations: 3.562 kB / 0.5599 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006947/0.6049, allocations: 5.699 MB / 0.5655 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.6052, allocations: 364.8 kB / 0.5659 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.6054, allocations: 28.61 kB / 0.5659 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.6065, allocations: 91.88 kB / 0.566 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.6067, allocations: 85.73 kB / 0.5661 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-05/0.6068, allocations: 51.3 kB / 0.5661 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001887/0.6087, allocations: 2.15 MB / 0.5682 GB, free: 129.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6087, allocations: 0 / 0.5682 GB, free: 129.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002846/0.6115, allocations: 0.9151 MB / 0.5691 GB, free: 128.6 MB / 446.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.0002795/0.6118, allocations: 170.9 kB / 0.5693 GB, free: 128.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.6165, allocations: 4.782 MB / 0.5739 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6165, allocations: 0 / 0.5739 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.6181, allocations: 1.529 MB / 0.5754 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.6197, allocations: 344.5 kB / 0.5757 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008634/0.6284, allocations: 10.29 MB / 0.5858 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/0.6303, allocations: 2.847 MB / 0.5886 GB, free: 108.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005447/0.6308, allocations: 263.4 kB / 0.5888 GB, free: 108.5 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.6308, allocations: 0 / 0.5888 GB, free: 108.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04946/0.6803, allocations: 65.03 MB / 0.6523 GB, free: 43.48 MB / 446.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