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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 105.9 kB / 17.06 MB, free: 6.113 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.001047/0.001047, allocations: 196.1 kB / 18 MB, free: 5.191 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2867, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01201/0.2988, allocations: 10.29 MB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007608/0.3064, allocations: 3.87 MB / 414.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.3081, allocations: 55.88 kB / 414.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004287/0.3124, allocations: 2.071 MB / 416.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.3169, allocations: 1.673 MB / 418.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.3186, allocations: 0.694 MB / 418.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005195/0.3239, allocations: 3.364 MB / 422.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004114/0.328, allocations: 2.691 MB / 424.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002596/0.3306, allocations: 1.261 MB / 426.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.3333, allocations: 1.756 MB / 428 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009659/0.3343, allocations: 264 kB / 428.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.337, allocations: 1.127 MB / 429.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002063/0.3391, allocations: 1.578 MB / 430.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003028/0.3422, allocations: 1.864 MB / 432.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007226/0.3494, allocations: 5.972 MB / 438.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3494, allocations: 4 kB / 438.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3494, allocations: 0 / 438.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002166/0.3497, allocations: 0 / 438.8 MB, free: 2.102 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.009255/0.3589, allocations: 4.247 MB / 443 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.359, allocations: 11.89 kB / 443 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001459/0.3605, allocations: 0.6413 MB / 443.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006995/0.3675, allocations: 1.886 MB / 445.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/0.3722, allocations: 2.222 MB / 447.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.3724, allocations: 205.2 kB / 448 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009579/0.3734, allocations: 275.8 kB / 448.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/0.3951, allocations: 9.977 MB / 458.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002377/0.3954, allocations: 39.64 kB / 458.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001323/0.3967, allocations: 135.9 kB / 458.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003476/0.4002, allocations: 1.856 MB / 460.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01816/0.4184, allocations: 8.532 MB / 468.8 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04556/0.464, allocations: 36.77 MB / 0.4937 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0096/0.4737, allocations: 3.89 MB / 0.4975 GB, free: 9.363 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/0.4762, allocations: 1.806 MB / 0.4993 GB, free: 7.547 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01259/0.4889, allocations: 7.533 MB / 0.5066 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/0.489, allocations: 47.56 kB / 0.5067 GB, free: 15.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.378e-06/0.489, allocations: 0 / 0.5067 GB, free: 15.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05084/0.5398, allocations: 17.62 MB / 0.5239 GB, free: 13.95 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.5399, allocations: 153.5 kB / 0.524 GB, free: 13.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0058/0.5457, allocations: 3.482 MB / 0.5274 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.546, allocations: 49.7 kB / 0.5275 GB, free: 10.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.548, allocations: 2.857 MB / 0.5303 GB, free: 7.348 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007232/0.5488, allocations: 0.6629 MB / 0.5309 GB, free: 6.68 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001985/0.5508, allocations: 1.127 MB / 0.532 GB, free: 5.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.5509, allocations: 309 kB / 0.5323 GB, free: 5.238 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/0.5538, allocations: 1.935 MB / 0.5342 GB, free: 3.297 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2174/0.7713, allocations: 5.366 MB / 0.5394 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008561/0.7799, allocations: 7.921 MB / 0.5472 GB, free: 120.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/0.78, allocations: 35.44 kB / 0.5472 GB, free: 120.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01347/0.7935, allocations: 8.16 MB / 0.5552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.247e-05/0.7936, allocations: 62.16 kB / 0.5552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.7938, allocations: 126.1 kB / 0.5554 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003575/0.7973, allocations: 1.302 MB / 0.5566 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/0.8007, allocations: 1.25 MB / 0.5578 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007195/0.8079, allocations: 6.544 MB / 0.5642 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003913/0.8119, allocations: 293.9 kB / 0.5645 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000527/0.8124, allocations: 345.8 kB / 0.5648 GB, free: 111.5 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 (681): * Single equations (assignments): 677 * 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.002122/0.8145, allocations: 1.799 MB / 0.5666 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004553/0.815, allocations: 325.1 kB / 0.5669 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006087/0.8211, allocations: 3.369 MB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/0.8211, allocations: 20.78 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.8212, allocations: 4 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.8212, allocations: 7.969 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.8326, allocations: 7.587 MB / 0.5776 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.8326, allocations: 0 / 0.5776 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.8336, allocations: 235.7 kB / 0.5779 GB, free: 98.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/0.837, allocations: 1.127 MB / 0.579 GB, free: 97.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001641/0.8371, allocations: 30.94 kB / 0.579 GB, free: 97.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006708/0.8439, allocations: 6.161 MB / 0.585 GB, free: 90.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.8439, allocations: 4.594 kB / 0.585 GB, free: 90.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007846/0.8517, allocations: 5.732 MB / 0.5906 GB, free: 85.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008386/0.8526, allocations: 363.8 kB / 0.591 GB, free: 84.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003461/0.853, allocations: 28.98 kB / 0.591 GB, free: 84.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8542, allocations: 83.88 kB / 0.5911 GB, free: 84.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.8545, allocations: 96.81 kB / 0.5912 GB, free: 84.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.8546, allocations: 46.14 kB / 0.5912 GB, free: 84.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.8571, allocations: 2.154 MB / 0.5933 GB, free: 82.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8571, allocations: 0 / 0.5933 GB, free: 82.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00379/0.8609, allocations: 0.9209 MB / 0.5942 GB, free: 81.63 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.008027/0.8689, allocations: 6.369 MB / 0.6004 GB, free: 75.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006867/0.8758, allocations: 4.778 MB / 0.6051 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.8759, allocations: 0 / 0.6051 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.8777, allocations: 1.534 MB / 0.6066 GB, free: 68.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002158/0.8799, allocations: 360.8 kB / 0.6069 GB, free: 68.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05006/0.93, allocations: 41.24 MB / 0.6472 GB, free: 22.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/0.9321, allocations: 2.855 MB / 0.65 GB, free: 19.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003073/0.9352, allocations: 1.696 MB / 0.6517 GB, free: 17.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/0.9367, allocations: 1.589 MB / 0.6532 GB, free: 15.91 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.9367, allocations: 0 / 0.6532 GB, free: 15.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.039, allocations: 60.23 MB / 0.712 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.34/19.38, allocations: 22.09 kB / 0.712 GB, free: 4.117 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > 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.csv","/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