Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.861/1.861, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 177.3 kB / 487 MB, free: 5.324 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.3 MB / 0.7819 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008709/0.0008711, allocations: 102 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4248/0.4257, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.6093, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.525/1.134, allocations: 167.4 MB / 1.369 GB, free: 9.023 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/1.135, allocations: 91.94 kB / 1.369 GB, free: 8.973 MB / 0.8073 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.06636/1.201, allocations: 29.95 MB / 1.398 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/1.201, allocations: 11.98 kB / 1.398 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008313/1.202, allocations: 151 kB / 1.398 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006487/1.203, allocations: 450.1 kB / 1.399 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/1.203, allocations: 12 kB / 1.399 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.928e-05/1.203, allocations: 43.58 kB / 1.399 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000681/1.203, allocations: 465 kB / 1.399 GB, free: 14.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008094/1.204, allocations: 0.6026 MB / 1.4 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/1.204, allocations: 0 / 1.4 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/1.204, allocations: 4 kB / 1.4 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-05/1.204, allocations: 43.91 kB / 1.4 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/1.207, allocations: 2.726 MB / 1.403 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006901/1.208, allocations: 0.5224 MB / 1.403 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/1.208, allocations: 237.1 kB / 1.403 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004061/1.209, allocations: 0.5583 MB / 1.404 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004249/1.209, allocations: 342.2 kB / 1.404 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/1.209, allocations: 0 / 1.404 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008172/1.21, allocations: 0.5002 MB / 1.405 GB, free: 10.01 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/1.21, allocations: 82.73 kB / 1.405 GB, free: 9.914 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/1.21, allocations: 305.8 kB / 1.405 GB, free: 9.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/1.21, allocations: 33.2 kB / 1.405 GB, free: 9.645 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/1.211, allocations: 230.3 kB / 1.405 GB, free: 9.434 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/1.211, allocations: 166.3 kB / 1.405 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/1.211, allocations: 0 / 1.405 GB, free: 9.289 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001058/1.211, allocations: 356.5 kB / 1.406 GB, free: 8.953 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/1.211, allocations: 217 kB / 1.406 GB, free: 8.828 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/1.211, allocations: 333.8 kB / 1.406 GB, free: 8.551 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/1.212, allocations: 251.2 kB / 1.406 GB, free: 8.391 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.212, allocations: 0 / 1.406 GB, free: 8.391 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008345/1.213, allocations: 0.5923 MB / 1.407 GB, free: 7.957 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003365/1.213, allocations: 1.046 MB / 1.408 GB, free: 6.848 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/1.213, allocations: 8 kB / 1.408 GB, free: 6.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/1.213, allocations: 4 kB / 1.408 GB, free: 6.836 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/1.214, allocations: 112 kB / 1.408 GB, free: 6.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/1.214, allocations: 11.91 kB / 1.408 GB, free: 6.719 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000472/1.214, allocations: 59.58 kB / 1.408 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/1.214, allocations: 21.62 kB / 1.408 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.951e-06/1.214, allocations: 4 kB / 1.408 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007036/1.215, allocations: 464.3 kB / 1.409 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/1.215, allocations: 4.375 kB / 1.409 GB, free: 6.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.743e-06/1.215, allocations: 8.25 kB / 1.409 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/1.215, allocations: 107.3 kB / 1.409 GB, free: 6.211 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/1.215, allocations: 7.906 kB / 1.409 GB, free: 6.203 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/1.216, allocations: 55.66 kB / 1.409 GB, free: 6.148 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/1.216, allocations: 27.3 kB / 1.409 GB, free: 6.129 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0001262/1.216, allocations: 121.9 kB / 1.409 GB, free: 6.004 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.782e-05/1.216, allocations: 51.38 kB / 1.409 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008181/1.217, allocations: 0.5484 MB / 1.41 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/1.217, allocations: 4 kB / 1.41 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/1.217, allocations: 4 kB / 1.41 GB, free: 5.551 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/1.217, allocations: 7.984 kB / 1.41 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005557/1.217, allocations: 0.5539 MB / 1.41 GB, free: 5.086 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/1.217, allocations: 0 / 1.41 GB, free: 5.086 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/1.218, allocations: 87 kB / 1.41 GB, free: 5.004 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/1.218, allocations: 4 kB / 1.41 GB, free: 5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/1.218, allocations: 4 kB / 1.41 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.218, allocations: 0 / 1.41 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.218, allocations: 0 / 1.41 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001092/1.219, allocations: 0.8678 MB / 1.411 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001514/1.221, allocations: 1.563 MB / 1.413 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/1.221, allocations: 177.2 kB / 1.413 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.079e-05/1.221, allocations: 3.5 kB / 1.413 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003388/1.221, allocations: 31.95 kB / 1.413 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/1.221, allocations: 50.84 kB / 1.413 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/1.221, allocations: 15.5 kB / 1.413 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001969/1.222, allocations: 242 kB / 1.413 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001739/1.223, allocations: 249.8 kB / 1.413 GB, free: 2.508 MB / 0.8386 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0001851/1.223, allocations: 153.7 kB / 1.414 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001023/1.225, allocations: 0.8532 MB / 1.414 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.225, allocations: 4.312 kB / 1.414 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003235/1.225, allocations: 266.7 kB / 1.415 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006477/1.225, allocations: 146.2 kB / 1.415 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/1.227, allocations: 0.8236 MB / 1.416 GB, free: 0.7227 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/1.228, allocations: 0.9676 MB / 1.417 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of SimCode: time 2.91e-07/1.228, allocations: 0 / 1.417 GB, free: 15.75 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat