Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.ThreePhasesBalanced.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.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_latest_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.001411/0.001411, allocations: 113.5 kB / 16.42 MB, free: 6.508 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.001355/0.001355, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.375/1.375, allocations: 222.9 MB / 241.1 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.689/2.689, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 1.07 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7763/0.7777, allocations: 159.9 MB / 1.226 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.00831/0.7861, allocations: 6.054 MB / 1.232 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003879/0.79, allocations: 2.181 MB / 1.234 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004208/0.7904, allocations: 15.94 kB / 1.234 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.7919, allocations: 422 kB / 1.235 GB, free: 4.871 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.7929, allocations: 342.1 kB / 1.235 GB, free: 4.535 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.7941, allocations: 426.9 kB / 1.236 GB, free: 4.121 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001444/0.7955, allocations: 0.8179 MB / 1.236 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.7966, allocations: 0.5748 MB / 1.237 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006749/0.7973, allocations: 322.8 kB / 1.237 GB, free: 2.402 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008634/0.7982, allocations: 370.5 kB / 1.238 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001568/0.7984, allocations: 68 kB / 1.238 GB, free: 1.973 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00081/0.7992, allocations: 323.5 kB / 1.238 GB, free: 1.656 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.7994, allocations: 207.4 kB / 1.238 GB, free: 1.453 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003348/0.7998, allocations: 330.4 kB / 1.238 GB, free: 1.129 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.8009, allocations: 1.008 MB / 1.239 GB, free: 124 kB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.8009, allocations: 0 / 1.239 GB, free: 124 kB / 0.9512 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8009, allocations: 0 / 1.239 GB, free: 124 kB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.8009, allocations: 0 / 1.239 GB, free: 124 kB / 0.9512 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.001878/0.8028, allocations: 0.9876 MB / 1.24 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.8029, allocations: 8.031 kB / 1.24 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007047/0.8036, allocations: 136.4 kB / 1.241 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.8042, allocations: 455.2 kB / 1.241 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.8043, allocations: 37.38 kB / 1.241 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.39e-05/0.8044, allocations: 56.36 kB / 1.241 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.8055, allocations: 0.6851 MB / 1.242 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.8055, allocations: 4 kB / 1.242 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-05/0.8056, allocations: 31.97 kB / 1.242 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.18e-05/0.8057, allocations: 48.92 kB / 1.242 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.8067, allocations: 0.562 MB / 1.242 GB, free: 13 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003383/0.8101, allocations: 2.901 MB / 1.245 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.8112, allocations: 0.5657 MB / 1.246 GB, free: 9.262 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004344/0.8116, allocations: 257.5 kB / 1.246 GB, free: 9.004 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004768/0.8121, allocations: 0.5583 MB / 1.247 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006564/0.8128, allocations: 396.3 kB / 1.247 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=46): time 2.325e-06/0.8128, allocations: 0 / 1.247 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=46): time 0.001416/0.8142, allocations: 0.7382 MB / 1.248 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.8143, allocations: 89.23 kB / 1.248 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.8146, allocations: 357.7 kB / 1.248 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.8147, allocations: 49.69 kB / 1.248 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.8149, allocations: 292.9 kB / 1.248 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.8151, allocations: 158.7 kB / 1.249 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.8153, allocations: 106.2 kB / 1.249 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.8154, allocations: 354.8 kB / 1.249 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004623/0.8159, allocations: 250.9 kB / 1.249 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005496/0.8165, allocations: 358.6 kB / 1.25 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009073/0.8174, allocations: 0.5742 MB / 1.25 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.8174, allocations: 0 / 1.25 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001229/0.8186, allocations: 0.6799 MB / 1.251 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.8187, allocations: 33.7 kB / 1.251 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.8187, allocations: 4 kB / 1.251 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.8187, allocations: 4 kB / 1.251 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.8192, allocations: 111.8 kB / 1.251 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.8193, allocations: 4 kB / 1.251 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.8197, allocations: 67.88 kB / 1.251 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.8198, allocations: 31.97 kB / 1.251 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006193/0.8204, allocations: 369.2 kB / 1.251 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004896/0.8209, allocations: 335.2 kB / 1.252 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008072/0.8217, allocations: 0.5164 MB / 1.252 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.355e-06/0.8218, allocations: 0 / 1.252 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001085/0.8228, allocations: 0.6275 MB / 1.253 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/0.8229, allocations: 39.41 kB / 1.253 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.8229, allocations: 4 kB / 1.253 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.773e-06/0.8229, allocations: 4 kB / 1.253 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.8233, allocations: 99.81 kB / 1.253 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.8233, allocations: 4 kB / 1.253 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.8238, allocations: 71.89 kB / 1.253 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.572e-05/0.8239, allocations: 24.3 kB / 1.253 GB, free: 1.332 MB / 0.9669 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.0002163/0.8241, allocations: 235.1 kB / 1.253 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.452e-05/0.8242, allocations: 51.72 kB / 1.253 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.8253, allocations: 0.5737 MB / 1.254 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.8253, allocations: 0 / 1.254 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.8253, allocations: 4 kB / 1.254 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.8255, allocations: 180.6 kB / 1.254 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.8256, allocations: 19.92 kB / 1.254 GB, free: 256 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.826, allocations: 55.86 kB / 1.254 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.8262, allocations: 47.94 kB / 1.254 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001391/0.8276, allocations: 0.73 MB / 1.255 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001542/0.8292, allocations: 1.116 MB / 1.256 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004323/0.8296, allocations: 260.2 kB / 1.256 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002702/0.8299, allocations: 263.2 kB / 1.256 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of Backend: time 4.61e-07/0.8299, allocations: 0 / 1.256 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002079/0.832, allocations: 0.9595 MB / 1.257 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of SimCode: time 0.002089/0.8341, allocations: 1.467 MB / 1.259 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of Templates: time 0.01849/0.8526, allocations: 12.05 MB / 1.271 GB, free: 15.32 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches