Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1207, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004786/0.1255, allocations: 2.993 MB / 429.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.1272, allocations: 0.7478 MB / 430 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003144/0.1275, allocations: 7.938 kB / 430.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.1277, allocations: 59.44 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.128, allocations: 107.1 kB / 430.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.1284, allocations: 111.8 kB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006002/0.129, allocations: 410.3 kB / 430.7 MB, free: 356 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.1293, allocations: 149.8 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.1295, allocations: 159.4 kB / 431 MB, free: 44 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2026/0.3321, allocations: 179.7 kB / 431.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.3323, allocations: 39.5 kB / 431.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.3325, allocations: 54.98 kB / 431.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.3326, allocations: 112.4 kB / 431.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002108/0.3328, allocations: 205.9 kB / 431.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.3335, allocations: 0.495 MB / 432.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3335, allocations: 3.938 kB / 432.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3335, allocations: 2.312 kB / 432.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.3335, allocations: 0 / 432.1 MB, free: 7.758 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001533/0.3351, allocations: 0.8 MB / 432.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3351, allocations: 9.562 kB / 432.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.3352, allocations: 66.41 kB / 433 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.3352, allocations: 42.23 kB / 433 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.3357, allocations: 349 kB / 433.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.3357, allocations: 24.09 kB / 433.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.3357, allocations: 33.72 kB / 433.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/0.3362, allocations: 348.2 kB / 433.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3362, allocations: 0 / 433.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.3363, allocations: 14.12 kB / 433.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3363, allocations: 8.062 kB / 433.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/0.3367, allocations: 243.9 kB / 434 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.3383, allocations: 1.301 MB / 435.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003633/0.3386, allocations: 163.8 kB / 435.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.3389, allocations: 118.8 kB / 435.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.3389, allocations: 3.156 kB / 435.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.3389, allocations: 34.5 kB / 435.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.233e-06/0.3389, allocations: 0 / 435.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004584/0.3394, allocations: 237.6 kB / 435.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.3394, allocations: 53.94 kB / 435.9 MB, free: 6.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.3397, allocations: 321.1 kB / 436.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3398, allocations: 26.83 kB / 436.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3399, allocations: 217 kB / 436.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.3399, allocations: 58.08 kB / 436.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.34, allocations: 48.83 kB / 436.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.203e-05/0.3401, allocations: 336.5 kB / 436.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3402, allocations: 72.56 kB / 437 MB, free: 5.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.3404, allocations: 137.5 kB / 437.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.3406, allocations: 166.5 kB / 437.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3406, allocations: 1.625 kB / 437.3 MB, free: 5.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003869/0.341, allocations: 244.4 kB / 437.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.341, allocations: 5.312 kB / 437.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.341, allocations: 3.188 kB / 437.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.341, allocations: 3.188 kB / 437.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.3412, allocations: 48.23 kB / 437.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.3412, allocations: 7.391 kB / 437.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004091/0.3416, allocations: 70.11 kB / 437.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.3416, allocations: 11.97 kB / 437.7 MB, free: 5.234 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.0001239/0.3418, allocations: 151.2 kB / 437.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.3418, allocations: 28.95 kB / 437.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004188/0.3423, allocations: 207.7 kB / 438 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3423, allocations: 2.156 kB / 438 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3423, allocations: 5.672 kB / 438 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3423, allocations: 0.5625 kB / 438 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007722/0.343, allocations: 0.6247 MB / 438.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.343, allocations: 4.547 kB / 438.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001554/0.3432, allocations: 27.95 kB / 438.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3432, allocations: 1.188 kB / 438.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.3432, allocations: 11 kB / 438.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3432, allocations: 5.312 kB / 438.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3432, allocations: 1.094 kB / 438.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004645/0.3437, allocations: 381.3 kB / 439.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.3438, allocations: 104.1 kB / 439.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.3438, allocations: 5.219 kB / 439.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004435/0.3442, allocations: 60.17 kB / 439.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.3445, allocations: 72.39 kB / 439.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.3445, allocations: 10.8 kB / 439.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3447, allocations: 236.9 kB / 439.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3447, allocations: 3.469 kB / 439.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.3451, allocations: 87.44 kB / 439.7 MB, free: 4.074 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.0006639/0.3457, allocations: 0.9252 MB / 440.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000361/0.3461, allocations: 177 kB / 440.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3461, allocations: 64 / 440.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.3463, allocations: 104.2 kB / 440.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.3467, allocations: 54.36 kB / 440.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3508, allocations: 3.039 MB / 443.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.3511, allocations: 0.7737 MB / 444.7 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.3512, allocations: 35.77 kB / 444.8 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.3514, allocations: 108.8 kB / 444.9 MB, free: 408 kB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3514, allocations: 0 / 444.9 MB, free: 408 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0352/0.3866, allocations: 7.424 MB / 452.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.039/8.426, allocations: 12 kB / 452.3 MB, free: 14.89 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 12.34085552500619]