Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 107.8 kB / 16.41 MB, free: 6.449 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.001462/0.001463, allocations: 192.3 kB / 17.35 MB, free: 5.707 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 63.89 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9748/0.9764, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.00864/0.985, allocations: 6.064 MB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004023/0.9891, allocations: 2.178 MB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004282/0.9896, allocations: 8 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.9909, allocations: 426 kB / 1.176 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0008262/0.9917, allocations: 346.1 kB / 1.176 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.9928, allocations: 421.6 kB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008837/0.9937, allocations: 0.8216 MB / 1.177 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008817/0.9945, allocations: 0.567 MB / 1.178 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004335/0.995, allocations: 338.8 kB / 1.178 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005753/0.9956, allocations: 358.5 kB / 1.179 GB, free: 8.297 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.9957, allocations: 68 kB / 1.179 GB, free: 8.23 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005851/0.9963, allocations: 327.4 kB / 1.179 GB, free: 7.91 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.9965, allocations: 203.4 kB / 1.179 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003299/0.9969, allocations: 334.3 kB / 1.179 GB, free: 7.383 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.998, allocations: 1.005 MB / 1.18 GB, free: 6.379 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.998, allocations: 4 kB / 1.18 GB, free: 6.375 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.895e-06/0.9981, allocations: 4 kB / 1.18 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.9981, allocations: 0 / 1.18 GB, free: 6.371 MB / 0.9044 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.002008/1, allocations: 0.9836 MB / 1.181 GB, free: 5.328 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1, allocations: 8.922 kB / 1.181 GB, free: 5.32 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000689/1.001, allocations: 132.4 kB / 1.181 GB, free: 5.191 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006424/1.001, allocations: 459.1 kB / 1.182 GB, free: 4.703 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/1.002, allocations: 41.36 kB / 1.182 GB, free: 4.664 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.546e-05/1.002, allocations: 48.38 kB / 1.182 GB, free: 4.617 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/1.003, allocations: 0.6967 MB / 1.183 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/1.003, allocations: 4 kB / 1.183 GB, free: 3.887 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.639e-05/1.003, allocations: 20 kB / 1.183 GB, free: 3.867 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.229e-05/1.003, allocations: 48.97 kB / 1.183 GB, free: 3.82 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/1.004, allocations: 0.5659 MB / 1.183 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/1.007, allocations: 2.905 MB / 1.186 GB, free: 104 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/1.008, allocations: 0.5504 MB / 1.187 GB, free: 15.53 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/1.009, allocations: 257.6 kB / 1.187 GB, free: 15.27 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005116/1.009, allocations: 0.5661 MB / 1.187 GB, free: 14.57 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006583/1.01, allocations: 400.2 kB / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of pre-optimization done (n=46): time 2.364e-06/1.01, allocations: 0 / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of matching and sorting (n=46): time 0.001458/1.012, allocations: 0.7318 MB / 1.189 GB, free: 13.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/1.012, allocations: 85.09 kB / 1.189 GB, free: 13.33 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/1.012, allocations: 361.6 kB / 1.189 GB, free: 12.96 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/1.012, allocations: 49.83 kB / 1.189 GB, free: 12.91 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000217/1.012, allocations: 296.9 kB / 1.189 GB, free: 12.61 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/1.012, allocations: 154.8 kB / 1.189 GB, free: 12.46 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/1.013, allocations: 102.3 kB / 1.19 GB, free: 12.36 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001415/1.013, allocations: 362.7 kB / 1.19 GB, free: 11.99 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/1.013, allocations: 238.9 kB / 1.19 GB, free: 11.76 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/1.014, allocations: 362.6 kB / 1.191 GB, free: 11.36 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008967/1.015, allocations: 0.578 MB / 1.191 GB, free: 10.73 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.015, allocations: 0 / 1.191 GB, free: 10.73 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001162/1.016, allocations: 0.691 MB / 1.192 GB, free: 10.03 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/1.016, allocations: 29.7 kB / 1.192 GB, free: 9.996 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/1.016, allocations: 4.25 kB / 1.192 GB, free: 9.992 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/1.016, allocations: 8 kB / 1.192 GB, free: 9.984 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/1.016, allocations: 107.8 kB / 1.192 GB, free: 9.879 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/1.017, allocations: 8 kB / 1.192 GB, free: 9.871 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/1.017, allocations: 67.67 kB / 1.192 GB, free: 9.805 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/1.017, allocations: 20 kB / 1.192 GB, free: 9.785 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005791/1.018, allocations: 373.1 kB / 1.192 GB, free: 9.418 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004906/1.018, allocations: 331.2 kB / 1.193 GB, free: 9.047 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007931/1.019, allocations: 0.5254 MB / 1.193 GB, free: 8.48 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.565e-06/1.019, allocations: 0 / 1.193 GB, free: 8.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001045/1.02, allocations: 0.6257 MB / 1.194 GB, free: 7.844 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/1.02, allocations: 37.95 kB / 1.194 GB, free: 7.801 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/1.02, allocations: 4 kB / 1.194 GB, free: 7.797 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.453e-06/1.02, allocations: 4 kB / 1.194 GB, free: 7.793 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/1.02, allocations: 107.7 kB / 1.194 GB, free: 7.688 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/1.02, allocations: 8 kB / 1.194 GB, free: 7.68 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/1.021, allocations: 67.62 kB / 1.194 GB, free: 7.613 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/1.021, allocations: 24 kB / 1.194 GB, free: 7.59 MB / 0.92 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.0001926/1.021, allocations: 230.4 kB / 1.194 GB, free: 7.359 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/1.021, allocations: 47.72 kB / 1.194 GB, free: 7.312 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/1.022, allocations: 0.5763 MB / 1.195 GB, free: 6.73 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/1.022, allocations: 3.984 kB / 1.195 GB, free: 6.727 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.022, allocations: 0 / 1.195 GB, free: 6.727 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/1.023, allocations: 180.6 kB / 1.195 GB, free: 6.531 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/1.023, allocations: 15.94 kB / 1.195 GB, free: 6.516 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004032/1.023, allocations: 60.09 kB / 1.195 GB, free: 6.457 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/1.023, allocations: 51.89 kB / 1.195 GB, free: 6.406 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001479/1.025, allocations: 0.7259 MB / 1.196 GB, free: 5.672 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001548/1.026, allocations: 1.117 MB / 1.197 GB, free: 4.543 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004408/1.027, allocations: 267.6 kB / 1.197 GB, free: 4.281 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002759/1.027, allocations: 259.2 kB / 1.197 GB, free: 4.031 MB / 0.92 GB Notification: Performance of Backend: time 4.81e-07/1.027, allocations: 4 kB / 1.197 GB, free: 4.027 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002215/1.029, allocations: 0.9611 MB / 1.198 GB, free: 3.039 MB / 0.92 GB Notification: Performance of SimCode: time 0.002325/1.032, allocations: 1.457 MB / 1.2 GB, free: 1.539 MB / 0.92 GB Notification: Performance of Templates: time 0.04153/1.073, allocations: 12.04 MB / 1.212 GB, free: 5.609 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches