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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 109.2 kB / 16.41 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 187.9 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.628/2.628, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 71.89 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8663/0.8678, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.00672/0.8745, allocations: 4.444 MB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003804/0.8784, allocations: 2.177 MB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004191/0.8788, allocations: 15.94 kB / 1.215 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.8802, allocations: 414.1 kB / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0009183/0.8811, allocations: 342.1 kB / 1.216 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009485/0.8821, allocations: 422.7 kB / 1.216 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001041/0.8831, allocations: 0.8217 MB / 1.217 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009642/0.8841, allocations: 0.5708 MB / 1.217 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/0.8846, allocations: 322.8 kB / 1.218 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006392/0.8852, allocations: 362.6 kB / 1.218 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.8854, allocations: 71.98 kB / 1.218 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006063/0.886, allocations: 327.4 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.8863, allocations: 207.4 kB / 1.219 GB, free: 3.129 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004521/0.8867, allocations: 334.4 kB / 1.219 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.8878, allocations: 1.003 MB / 1.22 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.8878, allocations: 0 / 1.22 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8878, allocations: 0 / 1.22 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.198e-06/0.8878, allocations: 0 / 1.22 GB, free: 1.797 MB / 0.9356 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.001715/0.8895, allocations: 0.9688 MB / 1.221 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 8.679e-05/0.8896, allocations: 8.031 kB / 1.221 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006373/0.8903, allocations: 128.1 kB / 1.221 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005645/0.8908, allocations: 450.8 kB / 1.221 GB, free: 164 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.8909, allocations: 49.34 kB / 1.221 GB, free: 116 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.081e-05/0.891, allocations: 48.38 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.8922, allocations: 0.6929 MB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.8922, allocations: 7.938 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.8923, allocations: 23.98 kB / 1.222 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.878e-05/0.8924, allocations: 52.97 kB / 1.222 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.8934, allocations: 0.5542 MB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003532/0.8969, allocations: 2.893 MB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.898, allocations: 0.5584 MB / 1.226 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004459/0.8984, allocations: 261.5 kB / 1.226 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005034/0.8989, allocations: 0.5701 MB / 1.227 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006503/0.8996, allocations: 400.4 kB / 1.227 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=46): time 2.365e-06/0.8996, allocations: 3.938 kB / 1.227 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of matching and sorting (n=46): time 0.001495/0.9011, allocations: 0.7264 MB / 1.228 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.9012, allocations: 89.17 kB / 1.228 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004216/0.9016, allocations: 369.6 kB / 1.229 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.262e-05/0.9017, allocations: 45.7 kB / 1.229 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.9019, allocations: 288.3 kB / 1.229 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.902, allocations: 142 kB / 1.229 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.9022, allocations: 110.1 kB / 1.229 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.9024, allocations: 354.8 kB / 1.229 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.9028, allocations: 243 kB / 1.23 GB, free: 7.211 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.9034, allocations: 358.7 kB / 1.23 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008871/0.9043, allocations: 0.5702 MB / 1.231 GB, free: 6.199 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.9043, allocations: 0 / 1.231 GB, free: 6.199 MB / 0.9512 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001195/0.9055, allocations: 0.6793 MB / 1.231 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.9056, allocations: 37.7 kB / 1.231 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.9056, allocations: 7.984 kB / 1.231 GB, free: 5.457 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.9056, allocations: 7.938 kB / 1.231 GB, free: 5.449 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/0.9061, allocations: 108 kB / 1.231 GB, free: 5.344 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.9061, allocations: 8 kB / 1.231 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.9066, allocations: 71.56 kB / 1.231 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-05/0.9067, allocations: 20.16 kB / 1.231 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006201/0.9073, allocations: 369.1 kB / 1.232 GB, free: 4.883 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004741/0.9078, allocations: 335.2 kB / 1.232 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007833/0.9086, allocations: 0.5159 MB / 1.233 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.747e-06/0.9086, allocations: 3.938 kB / 1.233 GB, free: 3.945 MB / 0.9512 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001152/0.9097, allocations: 0.6214 MB / 1.233 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.9098, allocations: 41.69 kB / 1.233 GB, free: 3.266 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.9098, allocations: 4 kB / 1.233 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.9098, allocations: 4 kB / 1.233 GB, free: 3.258 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.9102, allocations: 99.81 kB / 1.233 GB, free: 3.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.9102, allocations: 4 kB / 1.233 GB, free: 3.156 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.9107, allocations: 72.03 kB / 1.233 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.9107, allocations: 24 kB / 1.233 GB, free: 3.062 MB / 0.9512 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.9109, allocations: 222.3 kB / 1.234 GB, free: 2.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.911, allocations: 51.38 kB / 1.234 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001199/0.9122, allocations: 0.5737 MB / 1.234 GB, free: 2.211 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.9122, allocations: 4 kB / 1.234 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.9122, allocations: 4 kB / 1.234 GB, free: 2.203 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/0.9125, allocations: 176.4 kB / 1.234 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.593e-05/0.9126, allocations: 19.92 kB / 1.234 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.913, allocations: 51.92 kB / 1.235 GB, free: 1.941 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.9131, allocations: 44.03 kB / 1.235 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001346/0.9145, allocations: 0.7416 MB / 1.235 GB, free: 1.148 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001537/0.916, allocations: 1.112 MB / 1.236 GB, free: 20 kB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004402/0.9165, allocations: 260.3 kB / 1.237 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002723/0.9168, allocations: 263.2 kB / 1.237 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of Backend: time 5.31e-07/0.9168, allocations: 0 / 1.237 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002035/0.9188, allocations: 0.954 MB / 1.238 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of SimCode: time 0.002157/0.921, allocations: 1.444 MB / 1.239 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of Templates: time 0.0228/0.9438, allocations: 12.29 MB / 1.251 GB, free: 0.8477 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches