Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.OnePhase.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.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_10_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.001536/0.001536, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001225/0.001226, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.17 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.649/2.649, allocations: 437 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 59.89 kB / 1.019 GB, free: 9.48 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.123/1.124, allocations: 151.6 MB / 1.167 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.008299/1.132, allocations: 4.447 MB / 1.172 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00468/1.137, allocations: 2.174 MB / 1.174 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006271/1.138, allocations: 11.94 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001562/1.139, allocations: 426 kB / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.00135/1.141, allocations: 354.1 kB / 1.175 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001439/1.142, allocations: 421.4 kB / 1.175 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001535/1.144, allocations: 0.8255 MB / 1.176 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/1.145, allocations: 0.5669 MB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007225/1.146, allocations: 326.8 kB / 1.177 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008196/1.147, allocations: 366.6 kB / 1.177 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002162/1.147, allocations: 72 kB / 1.177 GB, free: 9.91 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007801/1.148, allocations: 323.5 kB / 1.177 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003001/1.148, allocations: 207.4 kB / 1.178 GB, free: 9.391 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005478/1.148, allocations: 326.4 kB / 1.178 GB, free: 9.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001639/1.15, allocations: 1.003 MB / 1.179 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.15, allocations: 0 / 1.179 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.433e-06/1.15, allocations: 0 / 1.179 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.334e-05/1.15, allocations: 0 / 1.179 GB, free: 8.066 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.002657/1.153, allocations: 0.9727 MB / 1.18 GB, free: 7.035 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/1.153, allocations: 8.031 kB / 1.18 GB, free: 7.027 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000818/1.154, allocations: 136.1 kB / 1.18 GB, free: 6.895 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008837/1.155, allocations: 458.8 kB / 1.18 GB, free: 6.406 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/1.155, allocations: 37.36 kB / 1.18 GB, free: 6.371 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/1.155, allocations: 52.31 kB / 1.18 GB, free: 6.32 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/1.156, allocations: 0.6968 MB / 1.181 GB, free: 5.594 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/1.156, allocations: 3.938 kB / 1.181 GB, free: 5.59 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/1.156, allocations: 27.98 kB / 1.181 GB, free: 5.562 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.336e-05/1.156, allocations: 44.98 kB / 1.181 GB, free: 5.52 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/1.158, allocations: 0.5582 MB / 1.182 GB, free: 4.961 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004414/1.162, allocations: 2.9 MB / 1.185 GB, free: 1.816 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/1.163, allocations: 0.5558 MB / 1.185 GB, free: 1.238 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/1.164, allocations: 249.6 kB / 1.185 GB, free: 0.9883 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006033/1.164, allocations: 0.5661 MB / 1.186 GB, free: 300 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007481/1.165, allocations: 400.2 kB / 1.186 GB, free: 15.88 MB / 0.92 GB Notification: Performance of pre-optimization done (n=46): time 5.049e-06/1.165, allocations: 0 / 1.186 GB, free: 15.88 MB / 0.92 GB Notification: Performance of matching and sorting (n=46): time 0.001611/1.167, allocations: 0.7316 MB / 1.187 GB, free: 15.14 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/1.167, allocations: 85.11 kB / 1.187 GB, free: 15.04 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/1.167, allocations: 369.5 kB / 1.187 GB, free: 14.67 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/1.167, allocations: 49.69 kB / 1.187 GB, free: 14.62 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/1.168, allocations: 288.3 kB / 1.188 GB, free: 14.33 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/1.168, allocations: 146 kB / 1.188 GB, free: 14.18 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/1.168, allocations: 106.1 kB / 1.188 GB, free: 14.07 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001775/1.168, allocations: 358.9 kB / 1.188 GB, free: 13.71 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005456/1.169, allocations: 239 kB / 1.189 GB, free: 13.48 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005594/1.169, allocations: 362.7 kB / 1.189 GB, free: 13.08 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/1.17, allocations: 0.5663 MB / 1.189 GB, free: 12.47 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/1.17, allocations: 0 / 1.189 GB, free: 12.47 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001367/1.172, allocations: 0.6907 MB / 1.19 GB, free: 11.77 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.379e-05/1.172, allocations: 33.7 kB / 1.19 GB, free: 11.73 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/1.172, allocations: 4 kB / 1.19 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/1.172, allocations: 4 kB / 1.19 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000526/1.172, allocations: 111.8 kB / 1.19 GB, free: 11.61 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/1.172, allocations: 4 kB / 1.19 GB, free: 11.61 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/1.173, allocations: 71.83 kB / 1.19 GB, free: 11.54 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.619e-05/1.173, allocations: 23.98 kB / 1.19 GB, free: 11.51 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006047/1.174, allocations: 369.1 kB / 1.191 GB, free: 11.15 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005119/1.174, allocations: 335.2 kB / 1.191 GB, free: 10.77 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00091/1.175, allocations: 0.5137 MB / 1.192 GB, free: 10.22 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.512e-06/1.175, allocations: 0 / 1.192 GB, free: 10.22 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001216/1.176, allocations: 0.6373 MB / 1.192 GB, free: 9.57 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/1.176, allocations: 37.69 kB / 1.192 GB, free: 9.527 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/1.176, allocations: 0 / 1.192 GB, free: 9.527 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/1.176, allocations: 8.109 kB / 1.192 GB, free: 9.52 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/1.177, allocations: 103.8 kB / 1.192 GB, free: 9.418 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/1.177, allocations: 8.25 kB / 1.192 GB, free: 9.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004846/1.177, allocations: 67.62 kB / 1.192 GB, free: 9.344 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.758e-05/1.177, allocations: 20 kB / 1.192 GB, free: 9.324 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.000233/1.178, allocations: 230.3 kB / 1.193 GB, free: 9.094 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/1.178, allocations: 47.44 kB / 1.193 GB, free: 9.047 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/1.179, allocations: 0.5801 MB / 1.193 GB, free: 8.461 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/1.179, allocations: 4 kB / 1.193 GB, free: 8.457 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/1.179, allocations: 0 / 1.193 GB, free: 8.457 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/1.179, allocations: 172.4 kB / 1.193 GB, free: 8.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/1.179, allocations: 19.92 kB / 1.193 GB, free: 8.25 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/1.18, allocations: 51.92 kB / 1.193 GB, free: 8.199 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/1.18, allocations: 47.94 kB / 1.193 GB, free: 8.152 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001473/1.181, allocations: 0.7298 MB / 1.194 GB, free: 7.414 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00176/1.183, allocations: 1.109 MB / 1.195 GB, free: 6.293 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000475/1.184, allocations: 267.6 kB / 1.196 GB, free: 6.031 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000301/1.184, allocations: 267.1 kB / 1.196 GB, free: 5.773 MB / 0.92 GB Notification: Performance of Backend: time 1.252e-06/1.184, allocations: 0 / 1.196 GB, free: 5.773 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002405/1.186, allocations: 0.9581 MB / 1.197 GB, free: 4.789 MB / 0.92 GB Notification: Performance of SimCode: time 0.002424/1.189, allocations: 1.439 MB / 1.198 GB, free: 3.309 MB / 0.92 GB Notification: Performance of Templates: time 0.02489/1.214, allocations: 12.03 MB / 1.21 GB, free: 7.383 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches