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/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.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"}) [: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.83/1.83, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009362/0.0009365, allocations: 182.8 kB / 490.8 MB, free: 1.926 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.143/1.143, allocations: 221.3 MB / 0.7863 GB, free: 13.7 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.0008277/0.0008276, allocations: 95.41 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.422/0.4229, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.6105, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5205/1.131, allocations: 168.2 MB / 1.376 GB, free: 17.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/1.131, allocations: 91.3 kB / 1.376 GB, free: 17.1 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.06603/1.197, allocations: 29.96 MB / 1.405 GB, free: 20.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/1.197, allocations: 8 kB / 1.405 GB, free: 20.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007877/1.198, allocations: 155 kB / 1.405 GB, free: 20.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/1.199, allocations: 445.8 kB / 1.406 GB, free: 20.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/1.199, allocations: 19.5 kB / 1.406 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.896e-05/1.199, allocations: 28 kB / 1.406 GB, free: 20.36 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000615/1.199, allocations: 468.8 kB / 1.406 GB, free: 20.06 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007322/1.2, allocations: 0.6016 MB / 1.407 GB, free: 19.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/1.2, allocations: 7.875 kB / 1.407 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.863e-05/1.2, allocations: 4 kB / 1.407 GB, free: 19.57 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-05/1.2, allocations: 44.59 kB / 1.407 GB, free: 19.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/1.203, allocations: 2.715 MB / 1.41 GB, free: 17.03 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005956/1.203, allocations: 0.5294 MB / 1.41 GB, free: 16.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/1.204, allocations: 240.6 kB / 1.41 GB, free: 16.49 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003107/1.204, allocations: 0.5624 MB / 1.411 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003691/1.204, allocations: 346.3 kB / 1.411 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.833e-06/1.204, allocations: 0 / 1.411 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007293/1.205, allocations: 0.4997 MB / 1.412 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/1.205, allocations: 85.55 kB / 1.412 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/1.205, allocations: 302.2 kB / 1.412 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/1.205, allocations: 33.14 kB / 1.412 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/1.206, allocations: 233.8 kB / 1.412 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/1.206, allocations: 160.6 kB / 1.413 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.603e-05/1.206, allocations: 0 / 1.413 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001196/1.206, allocations: 354.6 kB / 1.413 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/1.206, allocations: 210.9 kB / 1.413 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003589/1.207, allocations: 343.1 kB / 1.413 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/1.207, allocations: 238 kB / 1.414 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.207, allocations: 0 / 1.414 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009391/1.208, allocations: 0.5972 MB / 1.414 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003241/1.208, allocations: 1.053 MB / 1.415 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/1.208, allocations: 4 kB / 1.415 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/1.208, allocations: 4 kB / 1.415 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000547/1.209, allocations: 115.1 kB / 1.415 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/1.209, allocations: 4 kB / 1.415 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/1.209, allocations: 63.55 kB / 1.415 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/1.209, allocations: 27.05 kB / 1.415 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/1.209, allocations: 4 kB / 1.415 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006985/1.21, allocations: 460.8 kB / 1.416 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/1.21, allocations: 8.031 kB / 1.416 GB, free: 11.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/1.21, allocations: 4 kB / 1.416 GB, free: 11.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/1.211, allocations: 107.2 kB / 1.416 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/1.211, allocations: 4 kB / 1.416 GB, free: 11.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/1.211, allocations: 63.48 kB / 1.416 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/1.211, allocations: 23.44 kB / 1.416 GB, free: 11.29 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.0001194/1.211, allocations: 122.4 kB / 1.416 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.844e-05/1.211, allocations: 47.44 kB / 1.416 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008128/1.212, allocations: 0.5438 MB / 1.417 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/1.212, allocations: 8 kB / 1.417 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/1.212, allocations: 3.938 kB / 1.417 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/1.212, allocations: 3.984 kB / 1.417 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005163/1.213, allocations: 0.5514 MB / 1.417 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/1.213, allocations: 8 kB / 1.417 GB, free: 10.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/1.213, allocations: 91.25 kB / 1.417 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/1.213, allocations: 0 / 1.417 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/1.213, allocations: 7.875 kB / 1.417 GB, free: 10.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/1.213, allocations: 8 kB / 1.417 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/1.213, allocations: 0 / 1.417 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001072/1.214, allocations: 0.8603 MB / 1.418 GB, free: 9.543 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001508/1.216, allocations: 1.562 MB / 1.42 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/1.216, allocations: 175.8 kB / 1.42 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.387e-05/1.216, allocations: 11.48 kB / 1.42 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/1.216, allocations: 23.97 kB / 1.42 GB, free: 8.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/1.217, allocations: 49.98 kB / 1.42 GB, free: 8.121 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.736e-05/1.217, allocations: 18.75 kB / 1.42 GB, free: 8.109 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002198/1.217, allocations: 233.5 kB / 1.42 GB, free: 7.93 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001704/1.218, allocations: 261.7 kB / 1.421 GB, free: 7.68 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.0001913/1.219, allocations: 142.7 kB / 1.421 GB, free: 7.539 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001029/1.22, allocations: 0.8648 MB / 1.422 GB, free: 6.934 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.22, allocations: 4 kB / 1.422 GB, free: 6.93 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000328/1.22, allocations: 261.6 kB / 1.422 GB, free: 6.754 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/1.221, allocations: 141.9 kB / 1.422 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/1.222, allocations: 0.8318 MB / 1.423 GB, free: 5.895 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006083/1.223, allocations: 0.9738 MB / 1.424 GB, free: 4.906 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.223, allocations: 0 / 1.424 GB, free: 4.906 MB / 0.8386 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) 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