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.00186/0.00186, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00208/0.00208, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001653/0.001653, allocations: 51.92 kB / 377.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2755, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004292/0.2798, allocations: 2.795 MB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.2813, allocations: 0.7166 MB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.2815, allocations: 11.94 kB / 434.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.2817, allocations: 63.42 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002778/0.282, allocations: 111.1 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.2823, allocations: 103.8 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.2828, allocations: 414.3 kB / 435.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.283, allocations: 130.4 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.2832, allocations: 167.4 kB / 435.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.2835, allocations: 163.2 kB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.059e-05/0.2835, allocations: 40 kB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.2837, allocations: 59.98 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.2838, allocations: 111.6 kB / 435.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.284, allocations: 163.3 kB / 436.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005844/0.2846, allocations: 0.4984 MB / 436.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2846, allocations: 4 kB / 436.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2846, allocations: 3.938 kB / 436.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2846, allocations: 0 / 436.6 MB, free: 1.094 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.001618/0.2862, allocations: 0.7195 MB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2862, allocations: 12.03 kB / 437.3 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.857e-05/0.2863, allocations: 66.72 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.2864, allocations: 40.7 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.287, allocations: 288.9 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.528e-05/0.287, allocations: 21.03 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/0.287, allocations: 32.38 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005961/0.2876, allocations: 397.4 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2876, allocations: 0 / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.2877, allocations: 19.98 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.2877, allocations: 8 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004175/0.2881, allocations: 238.4 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.2899, allocations: 1.16 MB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.2903, allocations: 170.1 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.2906, allocations: 124.7 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.2906, allocations: 7.938 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.2906, allocations: 34.56 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.2906, allocations: 4 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004922/0.2911, allocations: 225.7 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.2912, allocations: 55.41 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.2915, allocations: 316.2 kB / 440.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.2916, allocations: 37.69 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.2917, allocations: 216.3 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/0.2918, allocations: 59.47 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.934e-05/0.2919, allocations: 49.7 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.292, allocations: 330.8 kB / 441.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.2921, allocations: 71.97 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.2923, allocations: 139.7 kB / 441.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.2926, allocations: 162.4 kB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2926, allocations: 4 kB / 441.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004054/0.293, allocations: 245.1 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.293, allocations: 4 kB / 441.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.293, allocations: 4 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.293, allocations: 4 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.2932, allocations: 47.91 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2932, allocations: 4 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003899/0.2936, allocations: 72 kB / 441.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.2936, allocations: 8 kB / 441.9 MB, free: 11.47 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.0001882/0.2938, allocations: 157.7 kB / 442.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.2939, allocations: 27.81 kB / 442.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004128/0.2943, allocations: 203.6 kB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.2943, allocations: 4 kB / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2943, allocations: 0 / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2943, allocations: 0 / 442.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008376/0.2952, allocations: 0.5609 MB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2952, allocations: 0 / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.2953, allocations: 31.98 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2953, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.2953, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2953, allocations: 4 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2953, allocations: 3.938 kB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005191/0.2959, allocations: 387.4 kB / 443.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.2959, allocations: 31.88 kB / 443.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.296, allocations: 0 / 443.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.2964, allocations: 64.02 kB / 443.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.2966, allocations: 75.86 kB / 443.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.2966, allocations: 15.88 kB / 443.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.2968, allocations: 235.1 kB / 443.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2968, allocations: 0 / 443.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000365/0.2972, allocations: 87.78 kB / 443.8 MB, free: 9.52 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.0008861/0.2981, allocations: 0.919 MB / 444.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003795/0.2985, allocations: 175.7 kB / 444.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2985, allocations: 0 / 444.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.2986, allocations: 107.9 kB / 445 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004426/0.2991, allocations: 48.11 kB / 445 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004166/0.3033, allocations: 3.051 MB / 448.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000173/0.3034, allocations: 172.8 kB / 448.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.3036, allocations: 34.28 kB / 448.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.3038, allocations: 107.4 kB / 448.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3038, allocations: 0 / 448.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.3432, allocations: 8.349 MB / 456.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.62, allocations: 13.48 kB / 456.7 MB, free: 12.56 MB / 366.1 MB " [Timeout remaining time 648] (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: 15.567847636062652]