Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.846/1.846, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001179/0.001179, allocations: 187.8 kB / 487 MB, free: 5.387 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.156/1.156, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.0008242/0.0008242, allocations: 98.88 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4232/0.4241, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.6164, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5375/1.154, allocations: 168.9 MB / 1.37 GB, free: 7.422 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/1.154, allocations: 90.12 kB / 1.37 GB, free: 7.371 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.0708/1.225, allocations: 31.89 MB / 1.401 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/1.225, allocations: 12.5 kB / 1.401 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/1.226, allocations: 151 kB / 1.402 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/1.227, allocations: 446.5 kB / 1.402 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/1.227, allocations: 16 kB / 1.402 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/1.227, allocations: 31.91 kB / 1.402 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007468/1.228, allocations: 466.7 kB / 1.403 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/1.229, allocations: 0.5937 MB / 1.403 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/1.229, allocations: 0 / 1.403 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.74e-05/1.229, allocations: 11.73 kB / 1.403 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.893e-05/1.229, allocations: 40.17 kB / 1.403 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/1.232, allocations: 2.734 MB / 1.406 GB, free: 8.613 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/1.233, allocations: 0.5149 MB / 1.406 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/1.233, allocations: 237.3 kB / 1.407 GB, free: 8.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004258/1.234, allocations: 0.5701 MB / 1.407 GB, free: 7.391 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/1.234, allocations: 341.2 kB / 1.407 GB, free: 7.137 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/1.234, allocations: 0 / 1.407 GB, free: 7.137 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008035/1.235, allocations: 0.5009 MB / 1.408 GB, free: 6.762 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/1.235, allocations: 89.47 kB / 1.408 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/1.235, allocations: 302.3 kB / 1.408 GB, free: 6.422 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/1.235, allocations: 32.7 kB / 1.408 GB, free: 6.387 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/1.235, allocations: 237.5 kB / 1.409 GB, free: 6.172 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/1.236, allocations: 150.1 kB / 1.409 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/1.236, allocations: 0 / 1.409 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001317/1.236, allocations: 360.6 kB / 1.409 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/1.236, allocations: 214.8 kB / 1.409 GB, free: 5.578 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/1.236, allocations: 328.8 kB / 1.41 GB, free: 5.309 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/1.237, allocations: 247.3 kB / 1.41 GB, free: 5.152 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.237, allocations: 0 / 1.41 GB, free: 5.152 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008842/1.238, allocations: 0.6008 MB / 1.41 GB, free: 4.707 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003733/1.238, allocations: 1.047 MB / 1.411 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.238, allocations: 3.938 kB / 1.411 GB, free: 3.594 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/1.238, allocations: 8 kB / 1.411 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/1.239, allocations: 109.2 kB / 1.412 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/1.239, allocations: 11.84 kB / 1.412 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/1.239, allocations: 55.64 kB / 1.412 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.774e-05/1.239, allocations: 30.05 kB / 1.412 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.073e-06/1.239, allocations: 6.5 kB / 1.412 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007096/1.24, allocations: 461.7 kB / 1.412 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/1.24, allocations: 4 kB / 1.412 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/1.24, allocations: 4 kB / 1.412 GB, free: 3.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/1.24, allocations: 111.4 kB / 1.412 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/1.24, allocations: 7.938 kB / 1.412 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/1.241, allocations: 55.55 kB / 1.412 GB, free: 2.902 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/1.241, allocations: 19.81 kB / 1.412 GB, free: 2.887 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.0001284/1.241, allocations: 127.2 kB / 1.412 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.963e-05/1.241, allocations: 51.42 kB / 1.412 GB, free: 2.707 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008247/1.242, allocations: 0.5444 MB / 1.413 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/1.242, allocations: 4.375 kB / 1.413 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.242, allocations: 3.938 kB / 1.413 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/1.242, allocations: 7.984 kB / 1.413 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005544/1.243, allocations: 0.558 MB / 1.414 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.243, allocations: 3.938 kB / 1.414 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/1.243, allocations: 91.06 kB / 1.414 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.291e-06/1.243, allocations: 4 kB / 1.414 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/1.243, allocations: 3.688 kB / 1.414 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/1.243, allocations: 4 kB / 1.414 GB, free: 1.746 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/1.243, allocations: 3.938 kB / 1.414 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001103/1.244, allocations: 0.8625 MB / 1.414 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001566/1.246, allocations: 1.556 MB / 1.416 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/1.246, allocations: 177.5 kB / 1.416 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/1.246, allocations: 11.98 kB / 1.416 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003353/1.246, allocations: 30.84 kB / 1.416 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/1.247, allocations: 51.48 kB / 1.416 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/1.247, allocations: 11.75 kB / 1.416 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001993/1.247, allocations: 236.8 kB / 1.416 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001708/1.249, allocations: 261.8 kB / 1.417 GB, free: 15.25 MB / 0.8542 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.0001903/1.249, allocations: 144.7 kB / 1.417 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001055/1.25, allocations: 0.8589 MB / 1.418 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.25, allocations: 0 / 1.418 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003259/1.25, allocations: 260.8 kB / 1.418 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006524/1.251, allocations: 144.6 kB / 1.418 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/1.252, allocations: 0.8284 MB / 1.419 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/1.253, allocations: 0.9664 MB / 1.42 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of SimCode: time 2.3e-07/1.253, allocations: 0 / 1.42 GB, free: 12.5 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat