Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",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.00161/0.00161, allocations: 113 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.001778/0.001778, allocations: 191.9 kB / 18 MB, free: 5.098 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 51.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2631, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007719/0.2708, allocations: 5.795 MB / 406 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.2756, allocations: 2.582 MB / 408.6 MB, free: 432 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005205/0.2761, allocations: 27.88 kB / 408.6 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.2778, allocations: 0.7661 MB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.2791, allocations: 0.5009 MB / 409.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.2803, allocations: 0.5119 MB / 410.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.2822, allocations: 1.593 MB / 412 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008089/0.2831, allocations: 0.5922 MB / 412.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009118/0.284, allocations: 0.6151 MB / 413.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.2852, allocations: 0.7354 MB / 413.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002598/0.2854, allocations: 132 kB / 414.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000514/0.2859, allocations: 212 kB / 414.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006812/0.2866, allocations: 0.6387 MB / 414.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.2877, allocations: 0.9127 MB / 415.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00294/0.2906, allocations: 2.498 MB / 418.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2907, allocations: 0 / 418.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.949e-06/0.2907, allocations: 4 kB / 418.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.733e-05/0.2907, allocations: 0 / 418.3 MB, free: 6.633 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005553/0.2963, allocations: 2.636 MB / 421 MB, free: 3.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.2964, allocations: 11.97 kB / 421 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001991/0.2966, allocations: 139.5 kB / 421.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/0.297, allocations: 235.4 kB / 421.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.2994, allocations: 1.548 MB / 422.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.2995, allocations: 96.02 kB / 423 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.2996, allocations: 84 kB / 423.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/0.3015, allocations: 1.1 MB / 424.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.3016, allocations: 3.984 kB / 424.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.504e-05/0.3017, allocations: 48 kB / 424.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.3017, allocations: 20 kB / 424.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3031, allocations: 0.7144 MB / 425 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006795/0.3099, allocations: 4.603 MB / 429.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.3113, allocations: 0.9435 MB / 430.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.3121, allocations: 382 kB / 430.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.076e-05/0.3121, allocations: 11.94 kB / 430.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.3122, allocations: 42.56 kB / 430.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.258e-06/0.3122, allocations: 3.984 kB / 430.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001845/0.314, allocations: 0.8288 MB / 431.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002264/0.3143, allocations: 423.2 kB / 432.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003714/0.318, allocations: 2.739 MB / 434.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.58e-05/0.3181, allocations: 41.7 kB / 435 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000849/0.319, allocations: 0.8873 MB / 435.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3192, allocations: 158.6 kB / 436 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.3194, allocations: 126.3 kB / 436.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3196, allocations: 333.9 kB / 436.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005634/0.3202, allocations: 257.1 kB / 436.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008206/0.321, allocations: 0.5285 MB / 437.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.3221, allocations: 0.6211 MB / 437.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.3221, allocations: 0 / 437.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001882/0.324, allocations: 0.862 MB / 438.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.324, allocations: 8 kB / 438.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.324, allocations: 4 kB / 438.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.3241, allocations: 8 kB / 438.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006223/0.3247, allocations: 167.9 kB / 438.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.3247, allocations: 11.98 kB / 438.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.3258, allocations: 163.4 kB / 439.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-05/0.3259, allocations: 24 kB / 439.1 MB, free: 1.004 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0008513/0.3267, allocations: 0.5664 MB / 439.7 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.327, allocations: 186.8 kB / 439.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/0.3284, allocations: 0.6923 MB / 440.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/0.3285, allocations: 7.938 kB / 440.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3285, allocations: 3.938 kB / 440.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.3285, allocations: 3.984 kB / 440.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.3318, allocations: 2.125 MB / 442.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3318, allocations: 0 / 442.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004895/0.3323, allocations: 103.9 kB / 442.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.3323, allocations: 4 kB / 442.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/0.3324, allocations: 12 kB / 442.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3324, allocations: 7.984 kB / 442.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.3324, allocations: 4.031 kB / 442.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.3342, allocations: 1.052 MB / 443.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/0.3349, allocations: 419.7 kB / 444.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.3351, allocations: 12 kB / 444.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.3361, allocations: 147.8 kB / 444.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.3364, allocations: 155.6 kB / 444.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.379e-05/0.3365, allocations: 15.98 kB / 444.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.3391, allocations: 1.951 MB / 446.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3391, allocations: 0 / 446.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008747/0.34, allocations: 307.4 kB / 446.8 MB, free: 9.098 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.003754/0.3438, allocations: 1.979 MB / 448.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3452, allocations: 0.5852 MB / 449.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3452, allocations: 0 / 449.4 MB, free: 6.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006661/0.3458, allocations: 347.8 kB / 449.7 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.3473, allocations: 332.7 kB / 450.1 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02614/0.3734, allocations: 17.2 MB / 467.3 MB, free: 4.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001245/0.3747, allocations: 1.433 MB / 468.7 MB, free: 2.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008986/0.3756, allocations: 294.8 kB / 469 MB, free: 2.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009393/0.3766, allocations: 0.6984 MB / 469.7 MB, free: 1.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3766, allocations: 4 kB / 469.7 MB, free: 1.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07786/0.4544, allocations: 38.81 MB / 0.4966 GB, free: 11.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.78, allocations: 8.781 kB / 0.4966 GB, free: 11.48 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)