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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 59.92 kB / 370.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2559, allocations: 52.17 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01301/0.2689, allocations: 10.38 MB / 433 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008467/0.2774, allocations: 3.917 MB / 436.9 MB, free: 224 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001616/0.279, allocations: 63.69 kB / 437 MB, free: 160 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004381/0.2834, allocations: 2.11 MB / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00478/0.2882, allocations: 1.677 MB / 440.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.29, allocations: 0.7017 MB / 441.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005215/0.2952, allocations: 3.365 MB / 444.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003118/0.2983, allocations: 2.224 MB / 447.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002496/0.3008, allocations: 1.281 MB / 448.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003703/0.3045, allocations: 1.908 MB / 450.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009028/0.3054, allocations: 264 kB / 450.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002665/0.3081, allocations: 1.162 MB / 451.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/0.3101, allocations: 1.613 MB / 453.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002869/0.3129, allocations: 1.868 MB / 455.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009458/0.3224, allocations: 5.968 MB / 461.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3224, allocations: 0 / 461.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3224, allocations: 0 / 461.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002536/0.3227, allocations: 0 / 461.1 MB, free: 7.898 MB / 366.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.01054/0.3332, allocations: 4.172 MB / 465.3 MB, free: 3.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.3332, allocations: 8.031 kB / 465.3 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001184/0.3344, allocations: 0.6413 MB / 465.9 MB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0071/0.3415, allocations: 1.894 MB / 467.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005389/0.3469, allocations: 2.15 MB / 470 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.3471, allocations: 205.2 kB / 470.2 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008354/0.3479, allocations: 275.8 kB / 470.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02076/0.3687, allocations: 9.977 MB / 480.4 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.3688, allocations: 39.64 kB / 480.5 MB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004816/0.3693, allocations: 135.9 kB / 480.6 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00334/0.3727, allocations: 1.852 MB / 482.5 MB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02013/0.3928, allocations: 8.536 MB / 491 MB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05147/0.4443, allocations: 36.66 MB / 0.5153 GB, free: 3.512 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009782/0.454, allocations: 3.078 MB / 0.5183 GB, free: 408 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/0.4569, allocations: 1.698 MB / 0.52 GB, free: 14.69 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.4692, allocations: 6.625 MB / 0.5264 GB, free: 8.023 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.831e-05/0.4693, allocations: 47.5 kB / 0.5265 GB, free: 7.969 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.538e-06/0.4693, allocations: 0 / 0.5265 GB, free: 7.969 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2542/0.7235, allocations: 17.37 MB / 0.5434 GB, free: 107 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.7236, allocations: 149 kB / 0.5436 GB, free: 106.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005244/0.7288, allocations: 3.504 MB / 0.547 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005001/0.7293, allocations: 49.58 kB / 0.547 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.731, allocations: 2.847 MB / 0.5498 GB, free: 103.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006619/0.7316, allocations: 0.6708 MB / 0.5505 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001259/0.7329, allocations: 1.122 MB / 0.5516 GB, free: 102.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.733, allocations: 304.8 kB / 0.5519 GB, free: 102 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.7354, allocations: 1.941 MB / 0.5538 GB, free: 101.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/0.7389, allocations: 5.361 MB / 0.559 GB, free: 95.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006042/0.7449, allocations: 7.927 MB / 0.5667 GB, free: 85.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-05/0.745, allocations: 32 kB / 0.5668 GB, free: 85.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01274/0.7577, allocations: 8.151 MB / 0.5747 GB, free: 77.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.928e-05/0.7578, allocations: 63.94 kB / 0.5748 GB, free: 77.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/0.7579, allocations: 120 kB / 0.5749 GB, free: 77.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003659/0.7616, allocations: 1.3 MB / 0.5762 GB, free: 76.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003597/0.7652, allocations: 1.255 MB / 0.5774 GB, free: 74.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007349/0.7725, allocations: 6.441 MB / 0.5837 GB, free: 68.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003986/0.7765, allocations: 299.7 kB / 0.584 GB, free: 67.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006185/0.7771, allocations: 344 kB / 0.5843 GB, free: 67.58 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.002494/0.7796, allocations: 1.805 MB / 0.5861 GB, free: 65.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005508/0.7802, allocations: 325.8 kB / 0.5864 GB, free: 65.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006382/0.7865, allocations: 3.351 MB / 0.5896 GB, free: 62.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.24e-05/0.7866, allocations: 20 kB / 0.5897 GB, free: 62.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.7866, allocations: 4 kB / 0.5897 GB, free: 62.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.64e-05/0.7866, allocations: 7.969 kB / 0.5897 GB, free: 62.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.8004, allocations: 7.533 MB / 0.597 GB, free: 54.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/0.8004, allocations: 3.938 kB / 0.597 GB, free: 54.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.8016, allocations: 243.6 kB / 0.5973 GB, free: 54.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003397/0.805, allocations: 1.119 MB / 0.5984 GB, free: 53.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/0.8052, allocations: 28 kB / 0.5984 GB, free: 53.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007014/0.8122, allocations: 6.067 MB / 0.6043 GB, free: 46.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.8122, allocations: 4 kB / 0.6043 GB, free: 46.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008443/0.8207, allocations: 5.709 MB / 0.6099 GB, free: 41.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008824/0.8216, allocations: 294.2 kB / 0.6102 GB, free: 40.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005106/0.8221, allocations: 28 kB / 0.6102 GB, free: 40.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.8234, allocations: 87.88 kB / 0.6103 GB, free: 40.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.8237, allocations: 100.7 kB / 0.6104 GB, free: 40.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.8238, allocations: 47.83 kB / 0.6104 GB, free: 40.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002801/0.8266, allocations: 2.154 MB / 0.6125 GB, free: 38.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8266, allocations: 0 / 0.6125 GB, free: 38.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004302/0.8309, allocations: 0.9139 MB / 0.6134 GB, free: 37.58 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.008531/0.8394, allocations: 6.349 MB / 0.6196 GB, free: 31.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006447/0.8459, allocations: 4.583 MB / 0.6241 GB, free: 26.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.8459, allocations: 0 / 0.6241 GB, free: 26.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001836/0.8477, allocations: 1.435 MB / 0.6255 GB, free: 25.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.8499, allocations: 371 kB / 0.6259 GB, free: 24.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0609/0.9108, allocations: 41.27 MB / 0.6662 GB, free: 10.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004102/0.9149, allocations: 2.851 MB / 0.6689 GB, free: 7.383 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004148/0.9191, allocations: 1.703 MB / 0.6706 GB, free: 5.676 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002641/0.9217, allocations: 1.589 MB / 0.6722 GB, free: 4.086 MB / 478.1 MB Notification: Performance of SimCode: time 1.583e-06/0.9217, allocations: 3.938 kB / 0.6722 GB, free: 4.082 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3502/1.272, allocations: 65.31 MB / 0.7359 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.19/22.46, allocations: 14.08 kB / 0.736 GB, free: 187.4 MB / 0.5294 GB " [Timeout remaining time 637] (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.0019992 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.184288853000908]