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.338/2.338, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001017/0.001017, allocations: 184.8 kB / 487.4 MB, free: 5.043 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.633/1.633, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 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.0008847/0.0008847, allocations: 94.67 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.493e-05/1.504e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2362, allocations: 142.3 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8402/1.076, allocations: 167.5 MB / 1.37 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/1.077, allocations: 89.02 kB / 1.37 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06392/1.141, allocations: 29.53 MB / 1.398 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.473e-06/1.141, allocations: 0 / 1.398 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.123e-05/1.141, allocations: 15.41 kB / 1.398 GB, free: 24.68 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.001332/1.142, allocations: 0.8192 MB / 1.399 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/1.142, allocations: 11.59 kB / 1.399 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007719/1.143, allocations: 162.6 kB / 1.399 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000508/1.143, allocations: 443.1 kB / 1.4 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/1.143, allocations: 18.25 kB / 1.4 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.921e-05/1.144, allocations: 34.36 kB / 1.4 GB, free: 23.63 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006106/1.144, allocations: 448.9 kB / 1.4 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007488/1.145, allocations: 0.5889 MB / 1.401 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/1.145, allocations: 4 kB / 1.401 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/1.145, allocations: 3.844 kB / 1.401 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.972e-05/1.145, allocations: 47.64 kB / 1.401 GB, free: 23.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002803/1.148, allocations: 2.74 MB / 1.404 GB, free: 21.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006795/1.149, allocations: 0.5152 MB / 1.404 GB, free: 21.23 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/1.149, allocations: 230.5 kB / 1.404 GB, free: 21.19 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003547/1.149, allocations: 0.5651 MB / 1.405 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004387/1.15, allocations: 371.8 kB / 1.405 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/1.15, allocations: 0 / 1.405 GB, free: 20.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007733/1.15, allocations: 0.4962 MB / 1.406 GB, free: 20.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/1.15, allocations: 85.36 kB / 1.406 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/1.151, allocations: 309.4 kB / 1.406 GB, free: 20.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/1.151, allocations: 35.86 kB / 1.406 GB, free: 19.99 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/1.151, allocations: 278.8 kB / 1.406 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/1.151, allocations: 148.1 kB / 1.407 GB, free: 19.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/1.151, allocations: 3.844 kB / 1.407 GB, free: 19.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001555/1.151, allocations: 349.3 kB / 1.407 GB, free: 19.37 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/1.152, allocations: 214.6 kB / 1.407 GB, free: 19.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/1.152, allocations: 329.1 kB / 1.407 GB, free: 19.21 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/1.152, allocations: 241.8 kB / 1.408 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.152, allocations: 0 / 1.408 GB, free: 19.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007681/1.153, allocations: 0.597 MB / 1.408 GB, free: 19.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004252/1.154, allocations: 1.077 MB / 1.409 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/1.154, allocations: 3.625 kB / 1.409 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/1.154, allocations: 11.8 kB / 1.409 GB, free: 17.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005043/1.154, allocations: 115.5 kB / 1.409 GB, free: 17.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/1.154, allocations: 7.719 kB / 1.409 GB, free: 17.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004542/1.155, allocations: 61.78 kB / 1.409 GB, free: 17.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/1.155, allocations: 19.03 kB / 1.409 GB, free: 17.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.785e-06/1.155, allocations: 5.562 kB / 1.41 GB, free: 17.82 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006215/1.155, allocations: 471.1 kB / 1.41 GB, free: 17.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/1.155, allocations: 0 / 1.41 GB, free: 17.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/1.155, allocations: 11.95 kB / 1.41 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/1.156, allocations: 103.4 kB / 1.41 GB, free: 17.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/1.156, allocations: 19.86 kB / 1.41 GB, free: 17.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/1.156, allocations: 51.64 kB / 1.41 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/1.156, allocations: 27.7 kB / 1.41 GB, free: 17.52 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.0001483/1.156, allocations: 123 kB / 1.41 GB, free: 17.4 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/1.156, allocations: 47.44 kB / 1.41 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007795/1.157, allocations: 0.5267 MB / 1.411 GB, free: 16.99 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/1.157, allocations: 15.92 kB / 1.411 GB, free: 16.97 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.157, allocations: 0 / 1.411 GB, free: 16.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/1.157, allocations: 3.984 kB / 1.411 GB, free: 16.97 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005389/1.158, allocations: 0.5495 MB / 1.411 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/1.158, allocations: 4 kB / 1.411 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/1.158, allocations: 98.17 kB / 1.411 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/1.158, allocations: 0 / 1.411 GB, free: 16.44 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/1.158, allocations: 4 kB / 1.411 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/1.158, allocations: 7.938 kB / 1.411 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.158, allocations: 0 / 1.411 GB, free: 16.43 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009612/1.159, allocations: 0.8419 MB / 1.412 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/1.159, allocations: 179.6 kB / 1.412 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.076e-05/1.159, allocations: 7.062 kB / 1.412 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003167/1.16, allocations: 27.95 kB / 1.413 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/1.16, allocations: 54.06 kB / 1.413 GB, free: 15.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/1.16, allocations: 15.19 kB / 1.413 GB, free: 15.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002308/1.16, allocations: 242.2 kB / 1.413 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.16, allocations: 0 / 1.413 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006852/1.161, allocations: 254 kB / 1.413 GB, free: 15.14 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.0002044/1.161, allocations: 145.3 kB / 1.413 GB, free: 15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009713/1.162, allocations: 0.9012 MB / 1.414 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/1.162, allocations: 8.125 kB / 1.414 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/1.162, allocations: 245.6 kB / 1.414 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000711/1.163, allocations: 149.5 kB / 1.414 GB, free: 14.06 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/1.164, allocations: 0.7809 MB / 1.415 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/1.165, allocations: 0.9165 MB / 1.416 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006108/1.165, allocations: 164.5 kB / 1.416 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/1.166, allocations: 47.05 kB / 1.416 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of SimCode: time 3.7e-07/1.166, allocations: 4 kB / 1.416 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of Templates: time 0.01399/1.18, allocations: 7.983 MB / 1.424 GB, free: 4.355 MB / 0.8386 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