Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_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 10.0.0-master/package.mo): time 1.786/1.786, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009296/0.0009296, allocations: 185.2 kB / 490.8 MB, free: 1.93 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.119/1.119, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008475/0.0008478, allocations: 97.42 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.3947/0.3956, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.5698, allocations: 143 MB / 1.212 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/1.079, allocations: 169.7 MB / 1.377 GB, free: 17.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/1.079, allocations: 89.58 kB / 1.377 GB, free: 17.12 MB / 0.823 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.06944/1.148, allocations: 31.89 MB / 1.409 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/1.148, allocations: 12 kB / 1.409 GB, free: 18.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007854/1.149, allocations: 147 kB / 1.409 GB, free: 17.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/1.15, allocations: 444.2 kB / 1.409 GB, free: 17.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/1.15, allocations: 12 kB / 1.409 GB, free: 17.58 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/1.15, allocations: 35.94 kB / 1.409 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006239/1.15, allocations: 473.1 kB / 1.41 GB, free: 17.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007161/1.151, allocations: 0.5936 MB / 1.41 GB, free: 16.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/1.151, allocations: 3.938 kB / 1.41 GB, free: 16.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/1.151, allocations: 15.59 kB / 1.41 GB, free: 16.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.598e-05/1.151, allocations: 35.73 kB / 1.41 GB, free: 16.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/1.154, allocations: 2.724 MB / 1.413 GB, free: 14.22 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/1.155, allocations: 0.5316 MB / 1.413 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/1.155, allocations: 237.2 kB / 1.414 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004078/1.155, allocations: 0.5619 MB / 1.414 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004518/1.156, allocations: 340.2 kB / 1.415 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.693e-06/1.156, allocations: 0 / 1.415 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008723/1.157, allocations: 0.5024 MB / 1.415 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/1.157, allocations: 87.67 kB / 1.415 GB, free: 12.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/1.157, allocations: 299.3 kB / 1.415 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/1.157, allocations: 36.69 kB / 1.415 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/1.157, allocations: 232.7 kB / 1.416 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/1.157, allocations: 153.9 kB / 1.416 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.658e-05/1.157, allocations: 0 / 1.416 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001219/1.158, allocations: 359.2 kB / 1.416 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/1.158, allocations: 218.5 kB / 1.416 GB, free: 11.18 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/1.158, allocations: 333.6 kB / 1.417 GB, free: 10.9 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/1.159, allocations: 240 kB / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.159, allocations: 0 / 1.417 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009126/1.16, allocations: 0.6096 MB / 1.418 GB, free: 10.3 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003586/1.16, allocations: 1.051 MB / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/1.16, allocations: 0 / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.16, allocations: 8 kB / 1.419 GB, free: 9.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005391/1.161, allocations: 111.1 kB / 1.419 GB, free: 9.074 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/1.161, allocations: 7.984 kB / 1.419 GB, free: 9.066 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/1.161, allocations: 59.55 kB / 1.419 GB, free: 9.008 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.993e-05/1.161, allocations: 19.62 kB / 1.419 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-06/1.161, allocations: 8 kB / 1.419 GB, free: 8.984 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007561/1.162, allocations: 462.5 kB / 1.419 GB, free: 8.672 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/1.162, allocations: 4 kB / 1.419 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.192e-06/1.162, allocations: 4 kB / 1.419 GB, free: 8.664 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/1.162, allocations: 111.6 kB / 1.419 GB, free: 8.559 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/1.162, allocations: 4 kB / 1.419 GB, free: 8.555 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/1.163, allocations: 63.73 kB / 1.419 GB, free: 8.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/1.163, allocations: 19.81 kB / 1.419 GB, free: 8.48 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.0001274/1.163, allocations: 126.2 kB / 1.42 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/1.163, allocations: 55.42 kB / 1.42 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008591/1.164, allocations: 0.535 MB / 1.42 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/1.164, allocations: 4 kB / 1.42 GB, free: 7.918 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.164, allocations: 7.891 kB / 1.42 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/1.164, allocations: 0 / 1.42 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/1.164, allocations: 0.553 MB / 1.421 GB, free: 7.465 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/1.164, allocations: 3.938 kB / 1.421 GB, free: 7.461 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/1.165, allocations: 91.44 kB / 1.421 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/1.165, allocations: 4 kB / 1.421 GB, free: 7.371 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/1.165, allocations: 7.609 kB / 1.421 GB, free: 7.367 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/1.165, allocations: 4 kB / 1.421 GB, free: 7.363 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.165, allocations: 0 / 1.421 GB, free: 7.363 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001164/1.166, allocations: 0.8638 MB / 1.422 GB, free: 6.738 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001608/1.168, allocations: 1.554 MB / 1.423 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/1.168, allocations: 180.4 kB / 1.423 GB, free: 5.391 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.528e-05/1.168, allocations: 7.375 kB / 1.423 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/1.168, allocations: 27.97 kB / 1.423 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/1.169, allocations: 46.11 kB / 1.423 GB, free: 5.324 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/1.169, allocations: 19.67 kB / 1.423 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000211/1.169, allocations: 230.8 kB / 1.424 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001716/1.171, allocations: 265.2 kB / 1.424 GB, free: 4.879 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.0001904/1.171, allocations: 151.3 kB / 1.424 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00109/1.172, allocations: 0.8606 MB / 1.425 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/1.172, allocations: 0 / 1.425 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003533/1.172, allocations: 269.2 kB / 1.425 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006735/1.173, allocations: 143.1 kB / 1.425 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/1.174, allocations: 0.8182 MB / 1.426 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006406/1.175, allocations: 0.9789 MB / 1.427 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.175, allocations: 0 / 1.427 GB, free: 2.105 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat