Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) 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(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001209/0.001209, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.432/2.432, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.364/4.364, allocations: 409.2 MB / 0.6838 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006697/0.0006694, allocations: 8 kB / 0.8375 GB, free: 6.527 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.271/1.272, allocations: 146.8 MB / 0.9809 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.008944/1.281, allocations: 3.827 MB / 0.9846 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006201/1.287, allocations: 2.008 MB / 0.9866 GB, free: 420 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006474/1.288, allocations: 15.88 kB / 0.9866 GB, free: 404 kB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003682/1.288, allocations: 63.48 kB / 0.9866 GB, free: 340 kB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001505/1.29, allocations: 255.2 kB / 0.9869 GB, free: 84 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001496/1.291, allocations: 286.1 kB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001669/1.293, allocations: 483 kB / 0.9876 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002765/1.296, allocations: 0.7144 MB / 0.9883 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009185/1.297, allocations: 219.1 kB / 0.9885 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008544/1.297, allocations: 250.9 kB / 0.9888 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001053/1.298, allocations: 20 kB / 0.9888 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009766/1.299, allocations: 183.8 kB / 0.989 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002974/1.299, allocations: 139.5 kB / 0.9891 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003828/1.299, allocations: 133.4 kB / 0.9892 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001775/1.301, allocations: 0.7502 MB / 0.99 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/1.301, allocations: 0 / 0.99 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.468e-06/1.301, allocations: 4 kB / 0.99 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.485e-05/1.301, allocations: 0 / 0.99 GB, free: 12.88 MB / 0.7481 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.003467/1.305, allocations: 0.8441 MB / 0.9908 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 8.713e-05/1.305, allocations: 8.031 kB / 0.9908 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002316/1.305, allocations: 98.5 kB / 0.9909 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/1.306, allocations: 135.1 kB / 0.991 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/1.308, allocations: 433.8 kB / 0.9914 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/1.308, allocations: 37 kB / 0.9915 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/1.308, allocations: 51.95 kB / 0.9915 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/1.31, allocations: 0.6926 MB / 0.9922 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/1.31, allocations: 0 / 0.9922 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/1.31, allocations: 23.97 kB / 0.9922 GB, free: 10.44 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001405/1.311, allocations: 56.97 kB / 0.9923 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/1.313, allocations: 0.5698 MB / 0.9928 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007395/1.32, allocations: 2.908 MB / 0.9957 GB, free: 6.66 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/1.322, allocations: 0.5666 MB / 0.9962 GB, free: 6.078 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009646/1.323, allocations: 0.574 MB / 0.9968 GB, free: 5.375 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/1.324, allocations: 412.4 kB / 0.9972 GB, free: 4.953 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=46): time 4.318e-06/1.325, allocations: 0 / 0.9972 GB, free: 4.953 MB / 0.7481 GB Notification: Performance of matching and sorting (n=46): time 0.002786/1.327, allocations: 0.7458 MB / 0.9979 GB, free: 4.199 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.702e-05/1.327, allocations: 81.11 kB / 0.998 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007763/1.328, allocations: 373.6 kB / 0.9983 GB, free: 3.727 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001157/1.328, allocations: 45.7 kB / 0.9984 GB, free: 3.676 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000396/1.329, allocations: 284.5 kB / 0.9987 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/1.329, allocations: 149.9 kB / 0.9988 GB, free: 3.242 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/1.329, allocations: 12 kB / 0.9988 GB, free: 3.23 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002635/1.329, allocations: 350.8 kB / 0.9991 GB, free: 2.879 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000779/1.33, allocations: 237 kB / 0.9994 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/1.331, allocations: 362.6 kB / 0.9997 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009584/1.332, allocations: 290.4 kB / 1 GB, free: 1.965 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/1.332, allocations: 0 / 1 GB, free: 1.965 MB / 0.7481 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002321/1.335, allocations: 0.6834 MB / 1.001 GB, free: 1.27 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009201/1.335, allocations: 1.08 MB / 1.002 GB, free: 104 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/1.336, allocations: 4 kB / 1.002 GB, free: 100 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.726e-05/1.336, allocations: 4 kB / 1.002 GB, free: 96 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/1.337, allocations: 111.8 kB / 1.002 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/1.337, allocations: 7.938 kB / 1.002 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009161/1.338, allocations: 71.55 kB / 1.002 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-05/1.338, allocations: 23.98 kB / 1.002 GB, free: 15.88 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.338, allocations: 4 kB / 1.002 GB, free: 15.88 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002008/1.34, allocations: 0.576 MB / 1.002 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/1.34, allocations: 0 / 1.002 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/1.34, allocations: 8 kB / 1.002 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/1.341, allocations: 103.8 kB / 1.003 GB, free: 15.19 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/1.341, allocations: 11.94 kB / 1.003 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008553/1.341, allocations: 71.73 kB / 1.003 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-05/1.342, allocations: 23.95 kB / 1.003 GB, free: 15.08 MB / 0.7637 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.0007521/1.342, allocations: 295.3 kB / 1.003 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/1.343, allocations: 55.36 kB / 1.003 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/1.345, allocations: 0.5815 MB / 1.004 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/1.345, allocations: 8 kB / 1.004 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/1.345, allocations: 0 / 1.004 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/1.345, allocations: 3.984 kB / 1.004 GB, free: 14.13 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/1.346, allocations: 0.6336 MB / 1.004 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/1.346, allocations: 0 / 1.004 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/1.347, allocations: 103.8 kB / 1.004 GB, free: 13.35 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/1.347, allocations: 0 / 1.004 GB, free: 13.35 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.023e-05/1.347, allocations: 8 kB / 1.004 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/1.347, allocations: 4 kB / 1.004 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.347, allocations: 3.938 kB / 1.004 GB, free: 13.33 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002934/1.35, allocations: 0.9151 MB / 1.005 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004906/1.351, allocations: 172.5 kB / 1.005 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/1.351, allocations: 16 kB / 1.005 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/1.351, allocations: 43.94 kB / 1.005 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/1.351, allocations: 43.94 kB / 1.006 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/1.352, allocations: 23.94 kB / 1.006 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003694/1.352, allocations: 251.2 kB / 1.006 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.11e-07/1.352, allocations: 0 / 1.006 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009652/1.353, allocations: 271 kB / 1.006 GB, free: 11.57 MB / 0.7637 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.002368/1.355, allocations: 1.54 MB / 1.008 GB, free: 9.992 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002004/1.357, allocations: 0.9743 MB / 1.008 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.357, allocations: 0 / 1.008 GB, free: 8.992 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006388/1.358, allocations: 276.4 kB / 1.009 GB, free: 8.723 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/1.359, allocations: 158 kB / 1.009 GB, free: 8.566 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006751/1.366, allocations: 4.802 MB / 1.014 GB, free: 3.656 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/1.367, allocations: 0.9107 MB / 1.014 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006859/1.368, allocations: 140.3 kB / 1.015 GB, free: 2.578 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005145/1.368, allocations: 191.4 kB / 1.015 GB, free: 2.391 MB / 0.7637 GB Notification: Performance of SimCode: time 1.503e-06/1.368, allocations: 0 / 1.015 GB, free: 2.391 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05786/1.426, allocations: 11.97 MB / 1.026 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004339/1.427, allocations: 195.1 kB / 1.027 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.461/4.888, allocations: 3.938 kB / 1.027 GB, free: 6.438 MB / 0.7794 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat