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.001339/0.001339, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001582/0.001582, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 7.723 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.002894/0.002894, allocations: 59.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3427, allocations: 53.41 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004692/0.3474, allocations: 2.789 MB / 433.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3489, allocations: 0.7205 MB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.349, allocations: 11.94 kB / 434.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.3492, allocations: 59.42 kB / 434.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.3495, allocations: 111.1 kB / 434.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.3498, allocations: 111.8 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.3503, allocations: 406.3 kB / 435.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/0.3506, allocations: 142.4 kB / 435.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.3507, allocations: 163.4 kB / 435.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.351, allocations: 155.2 kB / 435.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.087e-05/0.3511, allocations: 40 kB / 435.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.3512, allocations: 63.97 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.3514, allocations: 107.6 kB / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.3515, allocations: 171.2 kB / 436.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006479/0.3522, allocations: 0.4941 MB / 436.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3522, allocations: 4 kB / 436.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3522, allocations: 0 / 436.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3522, allocations: 0 / 436.6 MB, free: 0.918 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.001713/0.3539, allocations: 0.7272 MB / 437.4 MB, free: 160 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3539, allocations: 11.98 kB / 437.4 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/0.354, allocations: 70.72 kB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.3541, allocations: 40.7 kB / 437.5 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000564/0.3547, allocations: 288.9 kB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.3547, allocations: 21.03 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.3548, allocations: 32.38 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006181/0.3554, allocations: 401.4 kB / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3554, allocations: 0 / 438.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3554, allocations: 12 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3554, allocations: 8 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/0.3559, allocations: 234.5 kB / 438.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3578, allocations: 1.168 MB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.3582, allocations: 165.8 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002617/0.3584, allocations: 120.7 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.3585, allocations: 4 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.3585, allocations: 42.56 kB / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.3585, allocations: 0 / 440 MB, free: 13.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005069/0.359, allocations: 233.6 kB / 440.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3591, allocations: 59.41 kB / 440.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004021/0.3595, allocations: 320.2 kB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-05/0.3596, allocations: 29.7 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.3598, allocations: 208.4 kB / 440.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.3598, allocations: 59.48 kB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.603e-05/0.3599, allocations: 45.7 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.3601, allocations: 338.8 kB / 441.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.3602, allocations: 71.95 kB / 441.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.3604, allocations: 136.3 kB / 441.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.3607, allocations: 167.6 kB / 441.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3607, allocations: 0 / 441.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004199/0.3611, allocations: 247.5 kB / 441.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.3611, allocations: 8 kB / 441.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3611, allocations: 0 / 441.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.3611, allocations: 7.984 kB / 441.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.3613, allocations: 47.92 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3613, allocations: 4 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003943/0.3617, allocations: 63.75 kB / 442 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.3618, allocations: 16.03 kB / 442 MB, free: 11.28 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.0002588/0.362, allocations: 157.7 kB / 442.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.3621, allocations: 27.81 kB / 442.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.3625, allocations: 199.6 kB / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3625, allocations: 0 / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3625, allocations: 0 / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3625, allocations: 3.984 kB / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009002/0.3634, allocations: 0.5531 MB / 442.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3634, allocations: 0 / 442.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.3636, allocations: 27.98 kB / 442.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3636, allocations: 4.031 kB / 442.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3637, allocations: 11.98 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3637, allocations: 0 / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3637, allocations: 0 / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.3643, allocations: 387.1 kB / 443.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.3643, allocations: 31.88 kB / 443.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.3644, allocations: 3.984 kB / 443.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004147/0.3648, allocations: 67.92 kB / 443.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.365, allocations: 79.8 kB / 443.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.365, allocations: 11.94 kB / 443.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00028/0.3653, allocations: 235.1 kB / 443.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3653, allocations: 0 / 443.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003965/0.3657, allocations: 83.78 kB / 443.8 MB, free: 9.336 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.001008/0.3667, allocations: 0.9122 MB / 444.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000386/0.3671, allocations: 183.8 kB / 444.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3671, allocations: 0 / 444.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.3673, allocations: 106.5 kB / 445 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.3677, allocations: 52.88 kB / 445.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.3723, allocations: 3.039 MB / 448.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.3724, allocations: 168.8 kB / 448.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.3726, allocations: 50.2 kB / 448.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.3728, allocations: 107.4 kB / 448.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3728, allocations: 0 / 448.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04114/0.4139, allocations: 8.341 MB / 456.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.02, allocations: 10.45 kB / 456.8 MB, free: 12.36 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.972250446211547]