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.001152/0.001152, allocations: 110.4 kB / 17.73 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.001274/0.001275, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.424/1.424, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001428/0.001429, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.1007, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1905/0.2913, allocations: 10.32 MB / 385.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007881/0.2992, allocations: 3.868 MB / 389.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.301, allocations: 56.81 kB / 389.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003918/0.3049, allocations: 2.078 MB / 391.5 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005487/0.3104, allocations: 1.638 MB / 393.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.3124, allocations: 0.6857 MB / 393.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005556/0.318, allocations: 3.388 MB / 397.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.3213, allocations: 2.7 MB / 399.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.3241, allocations: 1.275 MB / 401.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002581/0.3267, allocations: 1.762 MB / 402.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005632/0.3272, allocations: 262.2 kB / 403.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.3295, allocations: 1.103 MB / 404.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001492/0.331, allocations: 1.591 MB / 405.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.3328, allocations: 1.876 MB / 407.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006532/0.3394, allocations: 5.933 MB / 413.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3394, allocations: 0 / 413.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.3394, allocations: 7.984 kB / 413.7 MB, free: 8.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001368/0.3395, allocations: 1.312 kB / 413.7 MB, free: 8.633 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.007828/0.3474, allocations: 4.13 MB / 417.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3474, allocations: 12.03 kB / 417.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006676/0.3541, allocations: 1.852 MB / 419.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.3578, allocations: 1.964 MB / 421.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.358, allocations: 209.2 kB / 421.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005082/0.3585, allocations: 267.8 kB / 422.1 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01873/0.3772, allocations: 9.981 MB / 432.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.098e-05/0.3774, allocations: 39.59 kB / 432.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004006/0.3778, allocations: 132.4 kB / 432.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/0.3809, allocations: 1.852 MB / 434.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.3993, allocations: 8.532 MB / 442.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0494/0.4487, allocations: 36.71 MB / 479.4 MB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.4588, allocations: 3.874 MB / 483.2 MB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002693/0.4616, allocations: 1.806 MB / 485 MB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/0.4742, allocations: 7.52 MB / 492.6 MB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.4743, allocations: 55.56 kB / 492.6 MB, free: 7.664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.778e-06/0.4743, allocations: 0 / 492.6 MB, free: 7.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.0524/0.5267, allocations: 17.46 MB / 0.4981 GB, free: 6.082 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.5268, allocations: 149.5 kB / 0.4983 GB, free: 5.902 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006469/0.5333, allocations: 3.478 MB / 0.5017 GB, free: 2.422 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003924/0.5337, allocations: 53.7 kB / 0.5017 GB, free: 2.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00189/0.5356, allocations: 2.74 MB / 0.5044 GB, free: 15.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008752/0.5365, allocations: 0.6403 MB / 0.505 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.5381, allocations: 1.119 MB / 0.5061 GB, free: 13.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.5382, allocations: 305.1 kB / 0.5064 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002906/0.5411, allocations: 1.951 MB / 0.5083 GB, free: 11.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00537/0.5465, allocations: 5.377 MB / 0.5135 GB, free: 4.453 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009077/0.5556, allocations: 7.943 MB / 0.5213 GB, free: 10.81 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/0.5557, allocations: 32 kB / 0.5213 GB, free: 10.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01616/0.5719, allocations: 8.17 MB / 0.5293 GB, free: 2.594 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.405e-05/0.572, allocations: 56 kB / 0.5294 GB, free: 2.539 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.5721, allocations: 120 kB / 0.5295 GB, free: 2.422 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004018/0.5761, allocations: 1.301 MB / 0.5307 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004092/0.5803, allocations: 1.259 MB / 0.532 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009015/0.5893, allocations: 6.542 MB / 0.5384 GB, free: 9.176 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004216/0.5935, allocations: 303.5 kB / 0.5387 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001406/0.595, allocations: 344 kB / 0.539 GB, free: 8.543 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.004235/0.5992, allocations: 1.811 MB / 0.5408 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008174/0.6, allocations: 308 kB / 0.541 GB, free: 6.414 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007812/0.6079, allocations: 3.362 MB / 0.5443 GB, free: 3.035 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.28e-05/0.6079, allocations: 23.98 kB / 0.5444 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/0.608, allocations: 8 kB / 0.5444 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.637e-05/0.608, allocations: 3.984 kB / 0.5444 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2431/0.8511, allocations: 7.573 MB / 0.5518 GB, free: 149.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/0.8511, allocations: 2.047 kB / 0.5518 GB, free: 149.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.8525, allocations: 240.4 kB / 0.552 GB, free: 149.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004336/0.8568, allocations: 1.122 MB / 0.5531 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002937/0.8571, allocations: 29.53 kB / 0.5531 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/0.8673, allocations: 6.17 MB / 0.5591 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.8673, allocations: 0 / 0.5591 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/0.8782, allocations: 5.704 MB / 0.5647 GB, free: 144.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/0.8798, allocations: 0.5761 MB / 0.5653 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006012/0.8804, allocations: 23.2 kB / 0.5653 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.8819, allocations: 97.55 kB / 0.5654 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/0.8822, allocations: 87.34 kB / 0.5655 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.8824, allocations: 44.88 kB / 0.5655 GB, free: 144.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003619/0.886, allocations: 2.156 MB / 0.5676 GB, free: 143.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.886, allocations: 0 / 0.5676 GB, free: 143.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005376/0.8914, allocations: 0.9182 MB / 0.5685 GB, free: 143.4 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.0004831/0.8919, allocations: 177.2 kB / 0.5687 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007183/0.8991, allocations: 4.792 MB / 0.5734 GB, free: 141.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/0.8991, allocations: 0 / 0.5734 GB, free: 141.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.9013, allocations: 1.538 MB / 0.5749 GB, free: 141.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.9037, allocations: 356.8 kB / 0.5752 GB, free: 140.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.9164, allocations: 8.026 MB / 0.583 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00236/0.9188, allocations: 2.853 MB / 0.5858 GB, free: 134.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003329/0.9221, allocations: 1.701 MB / 0.5875 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005441/0.9227, allocations: 219.4 kB / 0.5877 GB, free: 133.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9227, allocations: 0 / 0.5877 GB, free: 133.3 MB / 478.1 MB Notification: Performance of Templates: time 0.04967/0.9724, allocations: 31.15 MB / 0.6181 GB, free: 102.2 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