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.001903/0.001903, allocations: 110.2 kB / 16.92 MB, free: 6.332 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.002188/0.002188, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.348/2.348, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 41.72 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1626, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02205/0.1847, allocations: 10.28 MB / 360.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.1994, allocations: 3.882 MB / 364.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003097/0.2026, allocations: 51.88 kB / 364.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00772/0.2104, allocations: 2.079 MB / 366.5 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008213/0.2186, allocations: 1.641 MB / 368.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003424/0.2221, allocations: 0.694 MB / 368.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3431/0.5652, allocations: 3.344 MB / 372.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007142/0.5724, allocations: 2.689 MB / 374.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00439/0.5768, allocations: 1.252 MB / 376.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006169/0.5831, allocations: 1.763 MB / 377.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002078/0.5852, allocations: 262.8 kB / 378.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006215/0.5915, allocations: 1.122 MB / 379.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006005/0.5975, allocations: 1.57 MB / 380.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008582/0.6062, allocations: 1.867 MB / 382.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0163/0.6226, allocations: 5.736 MB / 388.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.818e-05/0.6227, allocations: 0 / 388.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.6227, allocations: 0 / 388.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003969/0.6231, allocations: 0 / 388.4 MB, free: 6.051 MB / 302.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.02019/0.6433, allocations: 4.145 MB / 392.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.94e-05/0.6435, allocations: 8.875 kB / 392.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003651/0.6471, allocations: 0.6376 MB / 393.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/0.6599, allocations: 1.872 MB / 395.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009737/0.6697, allocations: 2.175 MB / 397.2 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004811/0.6703, allocations: 211.7 kB / 397.4 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002497/0.6728, allocations: 267.4 kB / 397.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03893/0.7118, allocations: 9.975 MB / 407.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002992/0.7121, allocations: 48.42 kB / 407.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.7139, allocations: 132.9 kB / 407.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006184/0.7201, allocations: 1.859 MB / 409.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03336/0.7535, allocations: 8.532 MB / 418.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08257/0.8361, allocations: 36.84 MB / 455.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01795/0.8542, allocations: 3.883 MB / 459 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004486/0.8587, allocations: 1.812 MB / 460.8 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02144/0.8802, allocations: 7.519 MB / 468.3 MB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.166e-05/0.8804, allocations: 55.5 kB / 468.3 MB, free: 9.855 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 8.936e-06/0.8804, allocations: 0 / 468.3 MB, free: 9.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.09886/0.9793, allocations: 17.43 MB / 485.8 MB, free: 8.355 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.9795, allocations: 145.5 kB / 485.9 MB, free: 8.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009451/0.9889, allocations: 3.481 MB / 489.4 MB, free: 4.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007394/0.9897, allocations: 45.7 kB / 489.4 MB, free: 4.648 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004091/0.9938, allocations: 2.735 MB / 492.2 MB, free: 1.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001738/0.9956, allocations: 0.6421 MB / 492.8 MB, free: 1.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00321/0.9989, allocations: 1.107 MB / 493.9 MB, free: 168 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.9991, allocations: 301.1 kB / 494.2 MB, free: 15.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006426/1.006, allocations: 1.955 MB / 496.2 MB, free: 13.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01083/1.016, allocations: 5.361 MB / 0.4898 GB, free: 6.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01654/1.033, allocations: 7.918 MB / 0.4975 GB, free: 13.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001781/1.033, allocations: 43.78 kB / 0.4976 GB, free: 13.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.03143/1.065, allocations: 8.145 MB / 0.5055 GB, free: 5.121 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/1.065, allocations: 58.34 kB / 0.5056 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002331/1.065, allocations: 120 kB / 0.5057 GB, free: 4.949 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007764/1.073, allocations: 1.304 MB / 0.507 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007938/1.081, allocations: 1.259 MB / 0.5082 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/1.098, allocations: 6.546 MB / 0.5146 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008571/1.107, allocations: 305.6 kB / 0.5149 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001886/1.109, allocations: 344 kB / 0.5152 GB, free: 11.07 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 (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.006424/1.115, allocations: 1.81 MB / 0.517 GB, free: 9.246 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/1.116, allocations: 300.1 kB / 0.5173 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/1.129, allocations: 3.373 MB / 0.5205 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.674e-05/1.129, allocations: 18.27 kB / 0.5206 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.129, allocations: 4 kB / 0.5206 GB, free: 5.547 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.012e-05/1.129, allocations: 11.97 kB / 0.5206 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.356/1.485, allocations: 7.596 MB / 0.528 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.181e-05/1.485, allocations: 2.578 kB / 0.528 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00212/1.487, allocations: 238.5 kB / 0.5282 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00613/1.494, allocations: 1.125 MB / 0.5293 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005266/1.494, allocations: 31.25 kB / 0.5294 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/1.507, allocations: 6.163 MB / 0.5354 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.507, allocations: 3 kB / 0.5354 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/1.523, allocations: 5.705 MB / 0.5409 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/1.524, allocations: 347.2 kB / 0.5413 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007502/1.525, allocations: 30.98 kB / 0.5413 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002148/1.527, allocations: 89.2 kB / 0.5414 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004692/1.527, allocations: 96.22 kB / 0.5415 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002011/1.527, allocations: 47.84 kB / 0.5415 GB, free: 142.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005109/1.533, allocations: 2.156 MB / 0.5436 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.32e-07/1.533, allocations: 0 / 0.5436 GB, free: 142.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007321/1.54, allocations: 0.9147 MB / 0.5445 GB, free: 142.1 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.01339/1.553, allocations: 6.354 MB / 0.5507 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01229/1.566, allocations: 5.53 MB / 0.5561 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.566, allocations: 0 / 0.5561 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003236/1.569, allocations: 1.538 MB / 0.5576 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/1.573, allocations: 356.7 kB / 0.558 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09392/1.667, allocations: 45.35 MB / 0.6023 GB, free: 85.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004358/1.671, allocations: 2.849 MB / 0.605 GB, free: 82.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006766/1.678, allocations: 1.705 MB / 0.6067 GB, free: 80.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00366/1.681, allocations: 1.581 MB / 0.6083 GB, free: 79.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.502e-06/1.681, allocations: 0 / 0.6083 GB, free: 79.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1843/1.866, allocations: 63.64 MB / 0.6704 GB, free: 15.78 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.98/21.84, allocations: 7.797 kB / 0.6704 GB, free: 15.77 MB / 446.1 MB (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