Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001761/0.001761, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002114/0.002114, allocations: 214.7 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002546/0.002546, allocations: 67.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3106, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004405/0.315, allocations: 3.02 MB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.3165, allocations: 0.7556 MB / 434.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.3167, allocations: 11.94 kB / 435 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.3169, allocations: 55.44 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.3172, allocations: 107.1 kB / 435.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.3176, allocations: 119.7 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.3181, allocations: 414.3 kB / 435.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002959/0.3184, allocations: 146.4 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.3185, allocations: 163.4 kB / 435.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.3188, allocations: 187.1 kB / 436.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3189, allocations: 40 kB / 436.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.319, allocations: 59.98 kB / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.3192, allocations: 107.7 kB / 436.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.3194, allocations: 203 kB / 436.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005966/0.32, allocations: 0.4984 MB / 437 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.32, allocations: 0 / 437 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.32, allocations: 4 kB / 437 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.32, allocations: 0 / 437 MB, free: 0.8125 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001627/0.3216, allocations: 0.7272 MB / 437.8 MB, free: 52 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3216, allocations: 8.031 kB / 437.8 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.3217, allocations: 70.8 kB / 437.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.3219, allocations: 40.7 kB / 437.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005273/0.3224, allocations: 284.8 kB / 438.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.3224, allocations: 21.03 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/0.3225, allocations: 32.38 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005852/0.3231, allocations: 346 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.3231, allocations: 0 / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.3231, allocations: 12 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3231, allocations: 8 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.3235, allocations: 242.4 kB / 438.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/0.3254, allocations: 1.257 MB / 440.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/0.3258, allocations: 174.4 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.3261, allocations: 116.8 kB / 440.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.474e-05/0.3261, allocations: 3.938 kB / 440.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.3262, allocations: 38.5 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.3262, allocations: 0 / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005083/0.3267, allocations: 236.7 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.3267, allocations: 51.41 kB / 440.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003904/0.3271, allocations: 324.2 kB / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.3271, allocations: 25.7 kB / 441 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.3273, allocations: 212.4 kB / 441.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.624e-05/0.3274, allocations: 59.52 kB / 441.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.848e-05/0.3275, allocations: 53.59 kB / 441.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3276, allocations: 334.8 kB / 441.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.3278, allocations: 71.95 kB / 441.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.328, allocations: 132.3 kB / 441.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/0.3282, allocations: 169.8 kB / 442 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3282, allocations: 0 / 442 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004004/0.3286, allocations: 245.4 kB / 442.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3286, allocations: 8 kB / 442.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3286, allocations: 4 kB / 442.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3286, allocations: 4 kB / 442.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.3288, allocations: 43.92 kB / 442.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.3288, allocations: 0 / 442.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.3292, allocations: 67.77 kB / 442.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.3292, allocations: 16 kB / 442.4 MB, free: 11.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.3294, allocations: 162.1 kB / 442.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.299e-05/0.3294, allocations: 23.86 kB / 442.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004221/0.3299, allocations: 203.6 kB / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.3299, allocations: 4 kB / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.3299, allocations: 0 / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3299, allocations: 0 / 442.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008341/0.3307, allocations: 0.6037 MB / 443.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3307, allocations: 3.984 kB / 443.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.3309, allocations: 27.98 kB / 443.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3309, allocations: 0 / 443.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.3309, allocations: 0 / 443.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3309, allocations: 4 kB / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3309, allocations: 0 / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005105/0.3314, allocations: 390.6 kB / 443.8 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.043e-05/0.3315, allocations: 39.7 kB / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.3315, allocations: 4 kB / 443.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.3319, allocations: 51.92 kB / 443.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3321, allocations: 79.86 kB / 444 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.3321, allocations: 11.94 kB / 444 MB, free: 9.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002529/0.3324, allocations: 235.1 kB / 444.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3324, allocations: 0 / 444.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.3327, allocations: 83.78 kB / 444.3 MB, free: 9.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008991/0.3336, allocations: 0.9201 MB / 445.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.334, allocations: 171.8 kB / 445.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.334, allocations: 0 / 445.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.3341, allocations: 99.88 kB / 445.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.3346, allocations: 65.38 kB / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004108/0.3387, allocations: 3.044 MB / 448.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.3392, allocations: 0.7791 MB / 449.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.3393, allocations: 34.28 kB / 449.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.3395, allocations: 107.4 kB / 449.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3395, allocations: 0 / 449.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03777/0.3773, allocations: 7.649 MB / 457.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.41, allocations: 0 / 457.1 MB, free: 12.27 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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: 15.627289424999617]