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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.0009541/0.0009542, allocations: 176.9 kB / 492.3 MB, free: 0.6133 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.453/1.453, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0008712/0.0008713, allocations: 92.61 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.709e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2456, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8963/1.142, allocations: 168.1 MB / 1.377 GB, free: 18.86 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/1.142, allocations: 93.78 kB / 1.377 GB, free: 18.86 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06478/1.207, allocations: 29.65 MB / 1.406 GB, free: 20.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.613e-06/1.207, allocations: 4 kB / 1.406 GB, free: 20.88 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.444e-05/1.207, allocations: 19.61 kB / 1.406 GB, free: 20.87 MB / 0.8386 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.001431/1.209, allocations: 0.8206 MB / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/1.209, allocations: 12.03 kB / 1.406 GB, free: 20.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008025/1.209, allocations: 158.4 kB / 1.407 GB, free: 19.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/1.21, allocations: 441.3 kB / 1.407 GB, free: 19.47 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/1.21, allocations: 37.94 kB / 1.407 GB, free: 19.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.071e-05/1.21, allocations: 53.03 kB / 1.407 GB, free: 19.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000946/1.211, allocations: 0.6492 MB / 1.408 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/1.211, allocations: 0 / 1.408 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.137e-05/1.211, allocations: 33.33 kB / 1.408 GB, free: 18.92 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.477e-05/1.211, allocations: 36.11 kB / 1.408 GB, free: 18.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007255/1.212, allocations: 0.5304 MB / 1.408 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00279/1.215, allocations: 2.845 MB / 1.411 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007178/1.216, allocations: 0.5397 MB / 1.412 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/1.216, allocations: 251.6 kB / 1.412 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004639/1.216, allocations: 0.5544 MB / 1.412 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005805/1.217, allocations: 392.3 kB / 1.413 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.943e-06/1.217, allocations: 0 / 1.413 GB, free: 14.4 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008872/1.218, allocations: 0.5143 MB / 1.413 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/1.218, allocations: 89.53 kB / 1.413 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/1.218, allocations: 320 kB / 1.414 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/1.218, allocations: 40.95 kB / 1.414 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/1.219, allocations: 285.1 kB / 1.414 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/1.219, allocations: 156.8 kB / 1.414 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/1.219, allocations: 13.69 kB / 1.414 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.219, allocations: 359.4 kB / 1.415 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/1.219, allocations: 221.8 kB / 1.415 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/1.22, allocations: 341.2 kB / 1.415 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004119/1.22, allocations: 279.3 kB / 1.415 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.22, allocations: 3.938 kB / 1.415 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009568/1.221, allocations: 0.6601 MB / 1.416 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004192/1.221, allocations: 1.078 MB / 1.417 GB, free: 10.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/1.221, allocations: 7.938 kB / 1.417 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/1.222, allocations: 4 kB / 1.417 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005632/1.222, allocations: 110.9 kB / 1.417 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/1.222, allocations: 8 kB / 1.417 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/1.223, allocations: 73.56 kB / 1.417 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/1.223, allocations: 23.16 kB / 1.417 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/1.223, allocations: 7.953 kB / 1.417 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007994/1.223, allocations: 0.5487 MB / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-06/1.223, allocations: 0 / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.444e-06/1.224, allocations: 8 kB / 1.418 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/1.224, allocations: 103.3 kB / 1.418 GB, free: 9.988 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/1.224, allocations: 15.92 kB / 1.418 GB, free: 9.973 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/1.224, allocations: 61.89 kB / 1.418 GB, free: 9.922 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/1.224, allocations: 19.69 kB / 1.418 GB, free: 9.906 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.0001708/1.225, allocations: 140.8 kB / 1.418 GB, free: 9.781 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.614e-05/1.225, allocations: 55.39 kB / 1.418 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/1.226, allocations: 0.5695 MB / 1.419 GB, free: 9.336 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/1.226, allocations: 4 kB / 1.419 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.226, allocations: 3.938 kB / 1.419 GB, free: 9.328 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1.226, allocations: 3.984 kB / 1.419 GB, free: 9.324 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000932/1.227, allocations: 0.6349 MB / 1.419 GB, free: 8.812 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.227, allocations: 0 / 1.419 GB, free: 8.812 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/1.227, allocations: 95.17 kB / 1.419 GB, free: 8.723 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/1.227, allocations: 8 kB / 1.419 GB, free: 8.715 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/1.227, allocations: 18.56 kB / 1.419 GB, free: 8.703 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/1.227, allocations: 0 / 1.419 GB, free: 8.703 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.227, allocations: 4 kB / 1.419 GB, free: 8.699 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/1.229, allocations: 0.8656 MB / 1.42 GB, free: 8.086 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000258/1.229, allocations: 175.6 kB / 1.421 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/1.229, allocations: 18.95 kB / 1.421 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003348/1.229, allocations: 39.64 kB / 1.421 GB, free: 7.879 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/1.23, allocations: 54.8 kB / 1.421 GB, free: 7.836 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/1.23, allocations: 19.3 kB / 1.421 GB, free: 7.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003385/1.23, allocations: 248.4 kB / 1.421 GB, free: 7.629 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.23, allocations: 0 / 1.421 GB, free: 7.629 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000859/1.231, allocations: 279.2 kB / 1.421 GB, free: 7.379 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.0002806/1.231, allocations: 151.3 kB / 1.421 GB, free: 7.234 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001344/1.232, allocations: 0.9426 MB / 1.422 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.232, allocations: 1 kB / 1.422 GB, free: 6.543 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000385/1.233, allocations: 272.5 kB / 1.422 GB, free: 6.359 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/1.234, allocations: 159 kB / 1.423 GB, free: 6.234 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/1.235, allocations: 0.8109 MB / 1.423 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/1.236, allocations: 0.9184 MB / 1.424 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006123/1.236, allocations: 164.4 kB / 1.424 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/1.236, allocations: 47.36 kB / 1.425 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of SimCode: time 2.505e-06/1.237, allocations: 0 / 1.425 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of Templates: time 0.01451/1.251, allocations: 8.356 MB / 1.433 GB, free: 12.15 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches