Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.002041/0.002042, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001888/0.001888, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 47.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.1001, allocations: 46.62 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2167/0.3168, allocations: 10.32 MB / 385.5 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008055/0.3248, allocations: 3.867 MB / 389.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002201/0.3271, allocations: 56.09 kB / 389.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.3315, allocations: 2.078 MB / 391.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005381/0.3369, allocations: 1.64 MB / 393.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.3388, allocations: 0.6935 MB / 393.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005329/0.3442, allocations: 3.386 MB / 397.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003287/0.3475, allocations: 2.694 MB / 399.9 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002314/0.3498, allocations: 1.273 MB / 401.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.3525, allocations: 1.762 MB / 402.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007987/0.3533, allocations: 262.8 kB / 403.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002745/0.3561, allocations: 1.114 MB / 404.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.3582, allocations: 1.578 MB / 405.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.3612, allocations: 1.866 MB / 407.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009963/0.3712, allocations: 5.969 MB / 413.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/0.3713, allocations: 0 / 413.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3713, allocations: 0 / 413.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002648/0.3715, allocations: 0 / 413.7 MB, free: 8.617 MB / 334.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.01231/0.3839, allocations: 4.242 MB / 417.9 MB, free: 4.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.3839, allocations: 8.031 kB / 417.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006775/0.3907, allocations: 1.883 MB / 419.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003827/0.3946, allocations: 1.965 MB / 421.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.3947, allocations: 205.2 kB / 422 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004828/0.3952, allocations: 267.9 kB / 422.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01864/0.4139, allocations: 9.985 MB / 432.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.254e-05/0.414, allocations: 39.64 kB / 432.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003734/0.4144, allocations: 135.9 kB / 432.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003034/0.4174, allocations: 1.848 MB / 434.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01844/0.4359, allocations: 8.548 MB / 442.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04445/0.4804, allocations: 36.76 MB / 479.6 MB, free: 5.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009893/0.4903, allocations: 3.877 MB / 483.4 MB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00262/0.493, allocations: 1.806 MB / 485.3 MB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01092/0.5039, allocations: 7.537 MB / 492.8 MB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.504, allocations: 55.48 kB / 492.8 MB, free: 7.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 3.867e-06/0.504, allocations: 4 kB / 492.8 MB, free: 7.406 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05464/0.5586, allocations: 17.65 MB / 0.4985 GB, free: 5.652 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/0.5588, allocations: 141.5 kB / 0.4987 GB, free: 5.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005484/0.5642, allocations: 3.502 MB / 0.5021 GB, free: 1.977 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.5644, allocations: 57.62 kB / 0.5021 GB, free: 1.914 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00199/0.5664, allocations: 2.846 MB / 0.5049 GB, free: 15.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006927/0.5671, allocations: 0.6784 MB / 0.5056 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.5686, allocations: 1.124 MB / 0.5067 GB, free: 13.22 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.5687, allocations: 301.1 kB / 0.507 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002814/0.5716, allocations: 1.955 MB / 0.5089 GB, free: 10.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004828/0.5764, allocations: 5.366 MB / 0.5141 GB, free: 3.883 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008858/0.5853, allocations: 7.935 MB / 0.5219 GB, free: 10.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.562e-05/0.5853, allocations: 36 kB / 0.5219 GB, free: 10.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01482/0.6002, allocations: 8.192 MB / 0.5299 GB, free: 2.012 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.6003, allocations: 56.19 kB / 0.53 GB, free: 1.957 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002126/0.6006, allocations: 120 kB / 0.5301 GB, free: 1.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004224/0.6048, allocations: 1.304 MB / 0.5313 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004595/0.6094, allocations: 1.263 MB / 0.5326 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.6197, allocations: 6.538 MB / 0.539 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004986/0.6247, allocations: 299.7 kB / 0.5393 GB, free: 8.293 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00128/0.626, allocations: 340 kB / 0.5396 GB, free: 7.961 MB / 478.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.004025/0.6301, allocations: 1.818 MB / 0.5414 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008881/0.631, allocations: 317.8 kB / 0.5417 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007865/0.6388, allocations: 3.373 MB / 0.5449 GB, free: 2.426 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-05/0.6389, allocations: 16 kB / 0.545 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.6389, allocations: 8 kB / 0.545 GB, free: 2.402 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.639, allocations: 7.984 kB / 0.545 GB, free: 2.395 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2692/0.9081, allocations: 7.576 MB / 0.5524 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.717e-05/0.9082, allocations: 1.125 kB / 0.5524 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.9094, allocations: 237.4 kB / 0.5526 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004042/0.9134, allocations: 1.122 MB / 0.5537 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/0.9137, allocations: 30.58 kB / 0.5537 GB, free: 148.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008997/0.9227, allocations: 6.176 MB / 0.5598 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.9227, allocations: 0 / 0.5598 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.9331, allocations: 5.721 MB / 0.5653 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/0.9349, allocations: 0.591 MB / 0.5659 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000436/0.9353, allocations: 26.48 kB / 0.5659 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.9366, allocations: 87.7 kB / 0.566 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.9369, allocations: 93.53 kB / 0.5661 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.9371, allocations: 44.05 kB / 0.5662 GB, free: 143.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003747/0.9408, allocations: 2.157 MB / 0.5683 GB, free: 142.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9408, allocations: 4.5 kB / 0.5683 GB, free: 142.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006223/0.9471, allocations: 0.9179 MB / 0.5692 GB, free: 142.5 MB / 478.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.0004829/0.9476, allocations: 168.9 kB / 0.5693 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007342/0.9549, allocations: 4.797 MB / 0.574 GB, free: 140.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.955, allocations: 0 / 0.574 GB, free: 140.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.9571, allocations: 1.538 MB / 0.5755 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.9596, allocations: 364.8 kB / 0.5759 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/0.9722, allocations: 8.138 MB / 0.5838 GB, free: 135.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002304/0.9746, allocations: 2.857 MB / 0.5866 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003326/0.9779, allocations: 1.701 MB / 0.5883 GB, free: 132 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005229/0.9784, allocations: 211.4 kB / 0.5885 GB, free: 131.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/0.9784, allocations: 0 / 0.5885 GB, free: 131.8 MB / 478.1 MB Notification: Performance of Templates: time 0.04961/1.028, allocations: 31.15 MB / 0.6189 GB, free: 100.7 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches