Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001438/0.001438, allocations: 113.7 kB / 16.42 MB, free: 6.492 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.001556/0.001556, allocations: 189.5 kB / 17.34 MB, free: 5.73 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.407/1.407, 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 9.1.3-maint.9.1.x/package.mo): time 2.34/2.34, allocations: 390.3 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 67.89 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9795/0.981, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.009216/0.9902, allocations: 6.052 MB / 1.095 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004135/0.9944, allocations: 2.179 MB / 1.097 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004403/0.9949, allocations: 13.22 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.9963, allocations: 424.3 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.9973, allocations: 340.2 kB / 1.097 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.9986, allocations: 425.1 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001132/0.9997, allocations: 0.8262 MB / 1.099 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009229/1.001, allocations: 0.5703 MB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004893/1.001, allocations: 330.9 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000611/1.002, allocations: 366.6 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001235/1.002, allocations: 67.47 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008076/1.003, allocations: 327.5 kB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002382/1.003, allocations: 202.2 kB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003905/1.003, allocations: 336.8 kB / 1.101 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001459/1.005, allocations: 0.9951 MB / 1.102 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/1.005, allocations: 4.656 kB / 1.102 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.593e-06/1.005, allocations: 5.375 kB / 1.102 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.12e-05/1.005, allocations: 0 / 1.102 GB, free: 13.45 MB / 0.8731 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.002062/1.007, allocations: 0.963 MB / 1.103 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/1.007, allocations: 9.062 kB / 1.103 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007233/1.008, allocations: 134.3 kB / 1.103 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007866/1.009, allocations: 459 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/1.009, allocations: 34.06 kB / 1.103 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/1.009, allocations: 56.17 kB / 1.103 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/1.01, allocations: 0.6918 MB / 1.104 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/1.01, allocations: 0.5 kB / 1.104 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.994e-05/1.01, allocations: 27.73 kB / 1.104 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/1.01, allocations: 51.95 kB / 1.104 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/1.012, allocations: 0.5618 MB / 1.105 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00402/1.016, allocations: 2.901 MB / 1.107 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/1.017, allocations: 0.5525 MB / 1.108 GB, free: 9.277 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004713/1.017, allocations: 248.2 kB / 1.108 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000547/1.018, allocations: 0.5675 MB / 1.109 GB, free: 8.516 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007885/1.019, allocations: 403.9 kB / 1.109 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=46): time 2.685e-06/1.019, allocations: 0 / 1.109 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46): time 0.001628/1.02, allocations: 0.7336 MB / 1.11 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/1.02, allocations: 83.38 kB / 1.11 GB, free: 7.965 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005863/1.021, allocations: 371.9 kB / 1.11 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.469e-05/1.021, allocations: 44.56 kB / 1.11 GB, free: 7.727 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003731/1.021, allocations: 285.8 kB / 1.111 GB, free: 7.5 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/1.022, allocations: 146.4 kB / 1.111 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/1.022, allocations: 106 kB / 1.111 GB, free: 7.332 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0003645/1.022, allocations: 356.7 kB / 1.111 GB, free: 7 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/1.023, allocations: 238.1 kB / 1.111 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007514/1.024, allocations: 360.7 kB / 1.112 GB, free: 6.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/1.025, allocations: 0.5721 MB / 1.112 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/1.025, allocations: 1.125 kB / 1.112 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001495/1.026, allocations: 0.6752 MB / 1.113 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.157e-05/1.026, allocations: 37.78 kB / 1.113 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/1.026, allocations: 8.422 kB / 1.113 GB, free: 6 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/1.027, allocations: 4.5 kB / 1.113 GB, free: 6 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/1.027, allocations: 108.1 kB / 1.113 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/1.027, allocations: 5.359 kB / 1.113 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/1.028, allocations: 73.78 kB / 1.113 GB, free: 5.957 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/1.028, allocations: 20.64 kB / 1.113 GB, free: 5.953 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000848/1.029, allocations: 381.3 kB / 1.114 GB, free: 5.746 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006059/1.029, allocations: 331.4 kB / 1.114 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009254/1.03, allocations: 0.5133 MB / 1.114 GB, free: 5.219 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/1.03, allocations: 0 / 1.114 GB, free: 5.219 MB / 0.8731 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001249/1.031, allocations: 0.6305 MB / 1.115 GB, free: 4.934 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/1.031, allocations: 32.78 kB / 1.115 GB, free: 4.902 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/1.031, allocations: 7.969 kB / 1.115 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.774e-06/1.031, allocations: 5.469 kB / 1.115 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/1.032, allocations: 105.2 kB / 1.115 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/1.032, allocations: 6.656 kB / 1.115 GB, free: 4.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/1.032, allocations: 66.22 kB / 1.115 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/1.032, allocations: 21.33 kB / 1.115 GB, free: 4.852 MB / 0.8731 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.0002187/1.033, allocations: 232 kB / 1.115 GB, free: 4.629 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.171e-05/1.033, allocations: 47 kB / 1.116 GB, free: 4.605 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/1.034, allocations: 0.5761 MB / 1.116 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/1.034, allocations: 3.203 kB / 1.116 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.034, allocations: 1.938 kB / 1.116 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002544/1.034, allocations: 168.8 kB / 1.116 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.473e-05/1.034, allocations: 22.16 kB / 1.116 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/1.035, allocations: 53.19 kB / 1.116 GB, free: 4.188 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/1.035, allocations: 41.59 kB / 1.116 GB, free: 4.18 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001446/1.036, allocations: 0.7436 MB / 1.117 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001723/1.038, allocations: 1.105 MB / 1.118 GB, free: 3.195 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004982/1.039, allocations: 264.9 kB / 1.118 GB, free: 3.098 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003205/1.039, allocations: 264.2 kB / 1.119 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of Backend: time 5.81e-07/1.039, allocations: 0 / 1.119 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00231/1.041, allocations: 0.9581 MB / 1.12 GB, free: 2.516 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002482/1.044, allocations: 1.453 MB / 1.121 GB, free: 1.504 MB / 0.8731 GB Notification: Performance of Templates: time 0.02968/1.073, allocations: 12.04 MB / 1.133 GB, free: 364 kB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches