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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2941, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00418/0.2984, allocations: 2.988 MB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.3, allocations: 0.7362 MB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.3002, allocations: 7.938 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.3005, allocations: 63.42 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.3009, allocations: 103.1 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.3013, allocations: 107.8 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.3018, allocations: 414.3 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.3022, allocations: 205.8 kB / 413.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.3024, allocations: 163.4 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.3026, allocations: 183.2 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.3027, allocations: 40 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3028, allocations: 59.98 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.303, allocations: 99.72 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.3032, allocations: 211 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005933/0.3038, allocations: 497 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3038, allocations: 4 kB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3038, allocations: 7.938 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3038, allocations: 0 / 414.6 MB, free: 11.66 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.001673/0.3055, allocations: 0.8025 MB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.3056, allocations: 8.031 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.428e-05/0.3057, allocations: 74.66 kB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.3058, allocations: 40.7 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.3064, allocations: 342.7 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.3064, allocations: 25.03 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.3065, allocations: 28.38 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005722/0.3071, allocations: 354 kB / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3071, allocations: 0 / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/0.3071, allocations: 12 kB / 416.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3072, allocations: 8 kB / 416.3 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004136/0.3076, allocations: 242.4 kB / 416.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.3094, allocations: 1.296 MB / 417.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.3098, allocations: 182.5 kB / 418 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.3101, allocations: 128.7 kB / 418.1 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.3101, allocations: 4.281 kB / 418.1 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.3102, allocations: 30.56 kB / 418.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.3102, allocations: 4 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004814/0.3107, allocations: 236.3 kB / 418.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.3107, allocations: 55.41 kB / 418.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.3111, allocations: 323 kB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.3111, allocations: 29.64 kB / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.3112, allocations: 216.3 kB / 419 MB, free: 7.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.3113, allocations: 47.59 kB / 419 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.823e-05/0.3114, allocations: 53.66 kB / 419.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3115, allocations: 334.8 kB / 419.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3117, allocations: 75.89 kB / 419.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.3118, allocations: 135.6 kB / 419.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.3121, allocations: 174.2 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3121, allocations: 0 / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003883/0.3125, allocations: 245.3 kB / 420 MB, free: 5.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3125, allocations: 4 kB / 420 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3125, allocations: 4 kB / 420 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.3126, allocations: 4 kB / 420 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.3127, allocations: 43.92 kB / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.3128, allocations: 7.984 kB / 420.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3131, allocations: 67.86 kB / 420.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.3132, allocations: 12 kB / 420.2 MB, free: 5.77 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.0001781/0.3134, allocations: 161.7 kB / 420.3 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/0.3134, allocations: 27.81 kB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004105/0.3138, allocations: 195.8 kB / 420.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.3139, allocations: 7.938 kB / 420.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.3139, allocations: 3.938 kB / 420.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.3139, allocations: 0 / 420.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008211/0.3147, allocations: 0.6242 MB / 421.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3147, allocations: 4 kB / 421.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.3149, allocations: 31.92 kB / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3149, allocations: 4 kB / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.3149, allocations: 0 / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3149, allocations: 4 kB / 421.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3149, allocations: 4 kB / 421.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/0.3154, allocations: 387.7 kB / 421.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.134e-05/0.3155, allocations: 112.9 kB / 421.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.3156, allocations: 4 kB / 421.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/0.3159, allocations: 51.92 kB / 421.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.3161, allocations: 79.94 kB / 421.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3162, allocations: 11.94 kB / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002319/0.3164, allocations: 237.9 kB / 422.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3164, allocations: 0 / 422.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.3168, allocations: 83.78 kB / 422.2 MB, free: 3.648 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.0007874/0.3176, allocations: 0.9155 MB / 423.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.3179, allocations: 183.8 kB / 423.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3179, allocations: 0 / 423.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.3181, allocations: 107.9 kB / 423.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.3185, allocations: 57.36 kB / 423.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.3224, allocations: 3.043 MB / 426.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.3228, allocations: 0.7753 MB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.3229, allocations: 42.27 kB / 427.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.3231, allocations: 103.4 kB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.953e-06/0.3231, allocations: 0 / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.3517, allocations: 7.393 MB / 434.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/8.13, allocations: 6.594 kB / 434.8 MB, free: 6.992 MB / 350.1 MB (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches