Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_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.001773/0.001773, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.399/1.399, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 63.91 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2494, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004232/0.2536, allocations: 2.991 MB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2551, allocations: 0.7478 MB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.2553, allocations: 11.94 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.2555, allocations: 59.44 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.2558, allocations: 107.1 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.2562, allocations: 95.83 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.2566, allocations: 410.3 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.257, allocations: 209.8 kB / 413.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.2572, allocations: 155.4 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.2574, allocations: 183.2 kB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.2575, allocations: 40 kB / 414 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.2577, allocations: 63.98 kB / 414.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2578, allocations: 111.6 kB / 414.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.258, allocations: 203 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005922/0.2586, allocations: 0.497 MB / 414.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2586, allocations: 0 / 414.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2586, allocations: 0 / 414.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2587, allocations: 0 / 414.9 MB, free: 11.48 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.001661/0.2603, allocations: 0.7948 MB / 415.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2604, allocations: 12.03 kB / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.782e-05/0.2605, allocations: 62.72 kB / 415.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.323e-05/0.2605, allocations: 40.7 kB / 415.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.2611, allocations: 354.7 kB / 416.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.2611, allocations: 24.97 kB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.711e-05/0.2612, allocations: 28.38 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.2618, allocations: 350 kB / 416.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2618, allocations: 3.938 kB / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.2619, allocations: 12 kB / 416.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.118e-06/0.2619, allocations: 7.938 kB / 416.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/0.2623, allocations: 246.5 kB / 416.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001819/0.2641, allocations: 1.304 MB / 418.1 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.2645, allocations: 182.5 kB / 418.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.2648, allocations: 120.8 kB / 418.4 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.2648, allocations: 4.281 kB / 418.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.2649, allocations: 42.55 kB / 418.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/0.2649, allocations: 0 / 418.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004825/0.2654, allocations: 225.4 kB / 418.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.2654, allocations: 59.34 kB / 418.7 MB, free: 7.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.2658, allocations: 319 kB / 419.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.2658, allocations: 25.7 kB / 419.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.266, allocations: 216.4 kB / 419.3 MB, free: 6.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.979e-05/0.2661, allocations: 55.58 kB / 419.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.211e-05/0.2662, allocations: 45.67 kB / 419.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2663, allocations: 342.8 kB / 419.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.2665, allocations: 67.97 kB / 419.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.2667, allocations: 135.7 kB / 419.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.2669, allocations: 165.7 kB / 420.1 MB, free: 5.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2669, allocations: 0 / 420.1 MB, free: 5.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003873/0.2673, allocations: 245.1 kB / 420.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2673, allocations: 8 kB / 420.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.2673, allocations: 0 / 420.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.2674, allocations: 4 kB / 420.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.2675, allocations: 43.92 kB / 420.4 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.2676, allocations: 12.23 kB / 420.4 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.268, allocations: 63.78 kB / 420.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.268, allocations: 12 kB / 420.5 MB, free: 5.602 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.0001626/0.2682, allocations: 153.7 kB / 420.6 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.2682, allocations: 27.81 kB / 420.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004014/0.2686, allocations: 211.7 kB / 420.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2687, allocations: 0 / 420.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2687, allocations: 0 / 420.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2687, allocations: 3.938 kB / 420.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008047/0.2695, allocations: 0.6345 MB / 421.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2695, allocations: 0 / 421.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.2697, allocations: 27.98 kB / 421.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2697, allocations: 0 / 421.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.2697, allocations: 8 kB / 421.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2697, allocations: 4.031 kB / 421.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.2697, allocations: 4 kB / 421.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.2702, allocations: 387.4 kB / 421.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.025e-05/0.2703, allocations: 112.9 kB / 422 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.2704, allocations: 4 kB / 422 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.2708, allocations: 59.98 kB / 422.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.271, allocations: 75.88 kB / 422.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.271, allocations: 7.938 kB / 422.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002535/0.2712, allocations: 233.9 kB / 422.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2713, allocations: 0 / 422.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.2716, allocations: 87.78 kB / 422.5 MB, free: 3.477 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.000857/0.2725, allocations: 0.9123 MB / 423.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.2729, allocations: 183.4 kB / 423.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2729, allocations: 0.5625 kB / 423.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.2731, allocations: 111.9 kB / 423.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000417/0.2735, allocations: 48.75 kB / 423.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.2774, allocations: 3.051 MB / 426.8 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.2778, allocations: 0.7753 MB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.278, allocations: 42.28 kB / 427.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.2781, allocations: 107.4 kB / 427.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.2781, allocations: 0 / 427.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.3092, allocations: 7.392 MB / 435.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.099/8.408, allocations: 14.12 kB / 435.1 MB, free: 6.844 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1)