Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.756/2.756, allocations: 287.3 MB / 302.3 MB, free: 8.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001456/0.001456, allocations: 180.3 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.129/2.129, allocations: 205.4 MB / 0.6295 GB, free: 10.65 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001197, allocations: 86.94 kB / 0.7428 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006962/0.0006966, allocations: 19.03 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2475, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005428/0.253, allocations: 3.793 MB / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004245/0.2573, allocations: 2.068 MB / 0.984 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004213/0.2578, allocations: 7.938 kB / 0.984 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002603/0.2581, allocations: 67.47 kB / 0.9841 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0009051/0.259, allocations: 247.2 kB / 0.9843 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.2601, allocations: 299.3 kB / 0.9846 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0008976/0.2611, allocations: 471 kB / 0.9851 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.2626, allocations: 0.7187 MB / 0.9858 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003889/0.263, allocations: 215.2 kB / 0.986 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004874/0.2635, allocations: 243 kB / 0.9862 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.978e-05/0.2636, allocations: 20 kB / 0.9862 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005177/0.2641, allocations: 183.7 kB / 0.9864 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.2643, allocations: 139.5 kB / 0.9865 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.2645, allocations: 129.4 kB / 0.9866 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0008987/0.2654, allocations: 0.7288 MB / 0.9874 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2654, allocations: 0 / 0.9874 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2654, allocations: 4 kB / 0.9874 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.2654, allocations: 0 / 0.9874 GB, free: 18.95 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002173/0.2676, allocations: 0.8286 MB / 0.9882 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.2677, allocations: 20 kB / 0.9882 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.2678, allocations: 86.52 kB / 0.9883 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.2689, allocations: 143 kB / 0.9884 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007946/0.2697, allocations: 425.8 kB / 0.9888 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.2697, allocations: 37 kB / 0.9889 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.2699, allocations: 55.98 kB / 0.9889 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.2716, allocations: 0.6848 MB / 0.9896 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.2716, allocations: 0 / 0.9896 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.024e-05/0.2717, allocations: 27.97 kB / 0.9896 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.2719, allocations: 52.94 kB / 0.9897 GB, free: 16.46 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.2735, allocations: 0.5698 MB / 0.9902 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004666/0.2782, allocations: 2.908 MB / 0.993 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.2799, allocations: 0.5647 MB / 0.9936 GB, free: 12.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005005/0.2804, allocations: 0.559 MB / 0.9941 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009519/0.2814, allocations: 405.6 kB / 0.9945 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.046e-06/0.2814, allocations: 0 / 0.9945 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002224/0.2836, allocations: 0.7497 MB / 0.9953 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.2837, allocations: 81.11 kB / 0.9953 GB, free: 10.21 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/0.2842, allocations: 349.5 kB / 0.9957 GB, free: 9.863 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.65e-05/0.2843, allocations: 41.7 kB / 0.9957 GB, free: 9.816 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.2845, allocations: 288.6 kB / 0.996 GB, free: 9.527 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.2846, allocations: 150 kB / 0.9961 GB, free: 9.379 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.2847, allocations: 15.94 kB / 0.9961 GB, free: 9.363 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.109e-05/0.2848, allocations: 346.8 kB / 0.9965 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006931/0.2855, allocations: 233 kB / 0.9967 GB, free: 8.789 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007671/0.2863, allocations: 366.6 kB / 0.9971 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007373/0.287, allocations: 286.4 kB / 0.9973 GB, free: 8.102 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.2871, allocations: 0 / 0.9973 GB, free: 8.102 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001834/0.2889, allocations: 0.687 MB / 0.998 GB, free: 7.402 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002529/0.2892, allocations: 1.081 MB / 0.9991 GB, free: 6.234 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.2892, allocations: 4 kB / 0.9991 GB, free: 6.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.2893, allocations: 4 kB / 0.9991 GB, free: 6.227 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009093/0.2902, allocations: 111.8 kB / 0.9992 GB, free: 6.117 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.2902, allocations: 7.953 kB / 0.9992 GB, free: 6.109 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008537/0.2911, allocations: 79.47 kB / 0.9992 GB, free: 6.031 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.485e-05/0.2912, allocations: 20 kB / 0.9993 GB, free: 6.012 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.2912, allocations: 4 kB / 0.9993 GB, free: 6.008 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001558/0.2927, allocations: 0.5798 MB / 0.9998 GB, free: 5.422 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2928, allocations: 4 kB / 0.9998 GB, free: 5.418 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.2928, allocations: 8 kB / 0.9998 GB, free: 5.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.2935, allocations: 99.81 kB / 0.9999 GB, free: 5.312 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.2936, allocations: 12.05 kB / 1 GB, free: 5.301 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007111/0.2943, allocations: 75.66 kB / 1 GB, free: 5.227 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.2944, allocations: 20 kB / 1 GB, free: 5.207 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004193/0.2948, allocations: 299.2 kB / 1 GB, free: 4.906 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.2949, allocations: 39.53 kB / 1 GB, free: 4.867 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.2966, allocations: 0.593 MB / 1.001 GB, free: 4.266 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.2966, allocations: 7.984 kB / 1.001 GB, free: 4.258 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.2966, allocations: 0 / 1.001 GB, free: 4.258 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.2966, allocations: 4 kB / 1.001 GB, free: 4.254 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009009/0.2975, allocations: 0.6103 MB / 1.002 GB, free: 3.594 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.2976, allocations: 3.953 kB / 1.002 GB, free: 3.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009746/0.2985, allocations: 103.8 kB / 1.002 GB, free: 3.488 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.2986, allocations: 4 kB / 1.002 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.862e-05/0.2986, allocations: 8 kB / 1.002 GB, free: 3.477 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.2987, allocations: 4 kB / 1.002 GB, free: 3.473 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2987, allocations: 0 / 1.002 GB, free: 3.473 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.301, allocations: 0.9076 MB / 1.003 GB, free: 2.535 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/0.3014, allocations: 176.4 kB / 1.003 GB, free: 2.344 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.3015, allocations: 12 kB / 1.003 GB, free: 2.332 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005788/0.3021, allocations: 43.95 kB / 1.003 GB, free: 2.289 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.3023, allocations: 47.92 kB / 1.003 GB, free: 2.242 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.076e-05/0.3024, allocations: 15.98 kB / 1.003 GB, free: 2.227 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003322/0.3027, allocations: 243.2 kB / 1.003 GB, free: 1.988 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3028, allocations: 3.938 kB / 1.003 GB, free: 1.984 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001018/0.3038, allocations: 263.1 kB / 1.003 GB, free: 1.727 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002556/0.3064, allocations: 1.547 MB / 1.005 GB, free: 140 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002838/0.3092, allocations: 0.9673 MB / 1.006 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.3093, allocations: 0 / 1.006 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0008933/0.3102, allocations: 279.7 kB / 1.006 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3115, allocations: 147.8 kB / 1.006 GB, free: 14.73 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008874/0.3204, allocations: 4.727 MB / 1.011 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000695/0.3212, allocations: 0.9069 MB / 1.012 GB, free: 8.969 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000949/0.3221, allocations: 148.2 kB / 1.012 GB, free: 8.82 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.3227, allocations: 187.4 kB / 1.012 GB, free: 8.637 MB / 0.6355 GB Notification: Performance of SimCode: time 1.272e-06/0.3227, allocations: 0 / 1.012 GB, free: 8.637 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04401/0.3667, allocations: 11.73 MB / 1.023 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000351/0.3671, allocations: 191.8 kB / 1.024 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.932/3.299, allocations: 0 / 1.024 GB, free: 12.88 MB / 0.6511 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)