Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 112.3 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 197.3 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 47.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.277, allocations: 49.45 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004351/0.2813, allocations: 2.952 MB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2827, allocations: 0.7128 MB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.2828, allocations: 12 kB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.283, allocations: 63.36 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.2833, allocations: 107.1 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.2836, allocations: 107.8 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.2841, allocations: 414.3 kB / 404.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003152/0.2844, allocations: 209.8 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.2846, allocations: 163.4 kB / 405 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.2848, allocations: 183.2 kB / 405.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.167e-05/0.2849, allocations: 40 kB / 405.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.285, allocations: 59.98 kB / 405.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.2852, allocations: 107.6 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.2854, allocations: 203 kB / 405.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005815/0.286, allocations: 0.5009 MB / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.286, allocations: 0 / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.286, allocations: 0 / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.2861, allocations: 3.938 kB / 406 MB, free: 2.977 MB / 318.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.001657/0.2877, allocations: 0.7948 MB / 406.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2878, allocations: 12.03 kB / 406.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.081e-05/0.2879, allocations: 66.72 kB / 406.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.2879, allocations: 44.66 kB / 407 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.2885, allocations: 350.7 kB / 407.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.2885, allocations: 29.02 kB / 407.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.442e-05/0.2886, allocations: 28.38 kB / 407.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/0.2891, allocations: 342 kB / 407.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.2892, allocations: 3.938 kB / 407.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.649e-05/0.2892, allocations: 16 kB / 407.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2892, allocations: 12 kB / 407.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.2897, allocations: 234.5 kB / 407.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.2915, allocations: 1.3 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.2919, allocations: 182.4 kB / 409.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.2922, allocations: 128.8 kB / 409.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.219e-05/0.2922, allocations: 7.984 kB / 409.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.2923, allocations: 34.56 kB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.562e-06/0.2923, allocations: 0 / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004827/0.2928, allocations: 221.5 kB / 409.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.2928, allocations: 55.34 kB / 409.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.2932, allocations: 323.2 kB / 410.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.2932, allocations: 33.7 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.2934, allocations: 212.4 kB / 410.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.099e-05/0.2935, allocations: 55.48 kB / 410.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/0.2936, allocations: 53.7 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.2937, allocations: 330.8 kB / 410.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.2939, allocations: 71.97 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.2941, allocations: 131.7 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.2943, allocations: 167.6 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2943, allocations: 4 kB / 411.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004529/0.2948, allocations: 247.5 kB / 411.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2948, allocations: 4 kB / 411.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2948, allocations: 8 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2949, allocations: 4 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.295, allocations: 52.16 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2951, allocations: 4 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003918/0.2955, allocations: 67.77 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.2955, allocations: 8 kB / 411.6 MB, free: 13.08 MB / 334.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.0001755/0.2957, allocations: 161.7 kB / 411.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/0.2957, allocations: 23.86 kB / 411.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004156/0.2962, allocations: 207.1 kB / 412 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.2962, allocations: 4 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2962, allocations: 0 / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2962, allocations: 0 / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008299/0.297, allocations: 0.6241 MB / 412.6 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.297, allocations: 4 kB / 412.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2972, allocations: 27.98 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/0.2972, allocations: 4 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2973, allocations: 4.031 kB / 412.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.2973, allocations: 3.984 kB / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2973, allocations: 7.984 kB / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.2978, allocations: 380.4 kB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.381e-05/0.2979, allocations: 108.9 kB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.298, allocations: 7.984 kB / 413.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.2984, allocations: 55.98 kB / 413.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.2986, allocations: 71.89 kB / 413.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.2986, allocations: 15.92 kB / 413.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002621/0.2989, allocations: 230 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2989, allocations: 0 / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000376/0.2993, allocations: 87.78 kB / 413.6 MB, free: 10.97 MB / 334.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.0009096/0.3002, allocations: 0.9261 MB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.3006, allocations: 180.2 kB / 414.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3006, allocations: 4.125 kB / 414.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.3008, allocations: 107.9 kB / 414.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.3013, allocations: 60.67 kB / 414.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.3053, allocations: 3.054 MB / 417.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.3057, allocations: 0.7751 MB / 418.7 MB, free: 5.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.3059, allocations: 34.28 kB / 418.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.3061, allocations: 107.4 kB / 418.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3061, allocations: 0 / 418.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0437/0.3498, allocations: 7.421 MB / 426.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.487, allocations: 4.688 kB / 426.3 MB, free: 14.27 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches