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.0014/0.0014, allocations: 111.6 kB / 17.06 MB, free: 6.016 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.001599/0.001599, allocations: 195.9 kB / 18 MB, free: 5.094 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2729, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004117/0.277, allocations: 2.968 MB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.2784, allocations: 0.705 MB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.2786, allocations: 11.94 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.2789, allocations: 59.42 kB / 404 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.2792, allocations: 103.1 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.2796, allocations: 115.8 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.2799, allocations: 418.2 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.2803, allocations: 213.7 kB / 404.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2804, allocations: 159.4 kB / 405 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.2806, allocations: 179.2 kB / 405.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.283e-05/0.2807, allocations: 40 kB / 405.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.2808, allocations: 55.98 kB / 405.2 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.281, allocations: 111.6 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.2812, allocations: 207 kB / 405.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.2817, allocations: 0.5009 MB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2817, allocations: 0 / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2817, allocations: 4 kB / 406 MB, free: 2.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2817, allocations: 0 / 406 MB, free: 2.984 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.001537/0.2833, allocations: 0.7987 MB / 406.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.2833, allocations: 8.031 kB / 406.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.936e-05/0.2834, allocations: 70.72 kB / 406.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.2835, allocations: 44.66 kB / 407 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.2839, allocations: 346.7 kB / 407.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.284, allocations: 21.03 kB / 407.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.284, allocations: 36.36 kB / 407.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.2845, allocations: 346 kB / 407.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.2846, allocations: 0 / 407.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.2846, allocations: 12 kB / 407.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.2846, allocations: 8 kB / 407.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/0.285, allocations: 242.4 kB / 407.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.2867, allocations: 1.296 MB / 409.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.287, allocations: 186.5 kB / 409.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.2873, allocations: 125.1 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.2873, allocations: 7.922 kB / 409.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.2874, allocations: 38.56 kB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.2874, allocations: 0 / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004471/0.2878, allocations: 221.4 kB / 409.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.2879, allocations: 55.41 kB / 409.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003348/0.2882, allocations: 326.9 kB / 410.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2882, allocations: 29.7 kB / 410.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.2884, allocations: 212.4 kB / 410.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.2884, allocations: 63.47 kB / 410.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-05/0.2885, allocations: 41.7 kB / 410.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2887, allocations: 334.8 kB / 410.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2888, allocations: 71.97 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.289, allocations: 135.7 kB / 411.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.2892, allocations: 166.1 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2892, allocations: 0 / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000367/0.2896, allocations: 245.3 kB / 411.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.2896, allocations: 16 kB / 411.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2896, allocations: 0 / 411.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.2896, allocations: 7.938 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.2898, allocations: 43.97 kB / 411.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.2898, allocations: 11.88 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003713/0.2902, allocations: 63.78 kB / 411.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.2902, allocations: 15.98 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.0001357/0.2904, allocations: 153.7 kB / 411.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.471e-05/0.2904, allocations: 23.86 kB / 411.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003651/0.2908, allocations: 206.8 kB / 412 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2908, allocations: 0 / 412 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.2908, allocations: 0 / 412 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2908, allocations: 0 / 412 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007196/0.2915, allocations: 0.632 MB / 412.6 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.2916, allocations: 0 / 412.6 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.2917, allocations: 27.98 kB / 412.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2917, allocations: 3.938 kB / 412.6 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.2918, allocations: 8 kB / 412.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2918, allocations: 0 / 412.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.2918, allocations: 3.984 kB / 412.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004948/0.2923, allocations: 384.5 kB / 413 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.2924, allocations: 108.9 kB / 413.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.834e-05/0.2924, allocations: 4 kB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.2929, allocations: 59.91 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.2931, allocations: 71.88 kB / 413.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.243e-05/0.2931, allocations: 12 kB / 413.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002968/0.2934, allocations: 237.9 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2934, allocations: 0 / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.2938, allocations: 87.78 kB / 413.6 MB, free: 10.98 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.0007829/0.2946, allocations: 0.9236 MB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.2949, allocations: 186.9 kB / 414.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2949, allocations: 0 / 414.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.2951, allocations: 103.9 kB / 414.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2955, allocations: 57.23 kB / 414.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.2992, allocations: 3.051 MB / 417.9 MB, free: 6.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.2995, allocations: 0.7751 MB / 418.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.2996, allocations: 46.27 kB / 418.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.2998, allocations: 107.4 kB / 418.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2998, allocations: 0 / 418.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.3253, allocations: 7.407 MB / 426.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.196, allocations: 0.625 kB / 426.3 MB, free: 14.29 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