Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.OnePhase.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.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_9_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.001294/0.001294, allocations: 110.6 kB / 16.42 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.001304/0.001304, allocations: 189.7 kB / 17.35 MB, free: 5.734 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.384/1.384, allocations: 222.9 MB / 241.1 MB, free: 15.16 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.281/2.281, allocations: 390.3 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 59.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177/1.179, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005834/1.185, allocations: 4.442 MB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003771/1.189, allocations: 2.178 MB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/1.189, allocations: 12.69 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001271/1.191, allocations: 421.1 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008966/1.192, allocations: 352 kB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001096/1.193, allocations: 420.7 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001168/1.194, allocations: 0.8268 MB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009344/1.195, allocations: 0.5689 MB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005492/1.195, allocations: 329.1 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006893/1.196, allocations: 365.4 kB / 1.098 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001556/1.196, allocations: 67.44 kB / 1.098 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007754/1.197, allocations: 331.6 kB / 1.099 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002822/1.197, allocations: 202.8 kB / 1.099 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004046/1.198, allocations: 331.9 kB / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001411/1.199, allocations: 0.9959 MB / 1.1 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/1.199, allocations: 0 / 1.1 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.863e-06/1.199, allocations: 1.125 kB / 1.1 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.39e-05/1.199, allocations: 0 / 1.1 GB, free: 14.51 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.002144/1.201, allocations: 0.9688 MB / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/1.202, allocations: 9.984 kB / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000788/1.202, allocations: 138.2 kB / 1.101 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007957/1.203, allocations: 450.5 kB / 1.102 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.906e-05/1.203, allocations: 39.06 kB / 1.102 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/1.203, allocations: 57.94 kB / 1.102 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/1.205, allocations: 0.6926 MB / 1.102 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/1.205, allocations: 1.562 kB / 1.102 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.677e-05/1.205, allocations: 22.73 kB / 1.102 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.851e-05/1.205, allocations: 55.88 kB / 1.102 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/1.206, allocations: 0.5615 MB / 1.103 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004108/1.211, allocations: 2.894 MB / 1.106 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/1.212, allocations: 0.5535 MB / 1.106 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/1.212, allocations: 252.1 kB / 1.107 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004853/1.213, allocations: 0.5647 MB / 1.107 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007256/1.214, allocations: 396.2 kB / 1.108 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=46): time 2.194e-06/1.214, allocations: 0 / 1.108 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46): time 0.001571/1.215, allocations: 0.7328 MB / 1.108 GB, free: 9.117 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/1.215, allocations: 83.38 kB / 1.108 GB, free: 9.023 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005148/1.216, allocations: 367.6 kB / 1.109 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.299e-05/1.216, allocations: 48.14 kB / 1.109 GB, free: 8.785 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002251/1.216, allocations: 297.4 kB / 1.109 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/1.216, allocations: 147.2 kB / 1.109 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/1.216, allocations: 106.9 kB / 1.109 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001924/1.217, allocations: 355.5 kB / 1.11 GB, free: 8.047 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/1.217, allocations: 238.8 kB / 1.11 GB, free: 7.957 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005845/1.218, allocations: 356.4 kB / 1.11 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/1.219, allocations: 0.5773 MB / 1.111 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/1.219, allocations: 0 / 1.111 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001823/1.221, allocations: 0.6752 MB / 1.111 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.421e-05/1.221, allocations: 37.91 kB / 1.111 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/1.221, allocations: 2.781 kB / 1.111 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/1.221, allocations: 5.781 kB / 1.111 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/1.222, allocations: 112.1 kB / 1.112 GB, free: 7.035 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/1.222, allocations: 6.859 kB / 1.112 GB, free: 7.035 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005233/1.222, allocations: 76.61 kB / 1.112 GB, free: 7 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/1.222, allocations: 20.98 kB / 1.112 GB, free: 6.996 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000681/1.223, allocations: 366 kB / 1.112 GB, free: 6.805 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005352/1.223, allocations: 339.4 kB / 1.112 GB, free: 6.582 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001103/1.224, allocations: 0.5127 MB / 1.113 GB, free: 6.273 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.891e-06/1.224, allocations: 5.141 kB / 1.113 GB, free: 6.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001288/1.226, allocations: 0.6241 MB / 1.113 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/1.226, allocations: 34.78 kB / 1.113 GB, free: 5.953 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/1.226, allocations: 6.656 kB / 1.113 GB, free: 5.949 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.667e-06/1.226, allocations: 6.188 kB / 1.113 GB, free: 5.949 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/1.226, allocations: 101.2 kB / 1.114 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/1.226, allocations: 6.109 kB / 1.114 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/1.227, allocations: 66.64 kB / 1.114 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/1.227, allocations: 20.16 kB / 1.114 GB, free: 5.906 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.0002592/1.227, allocations: 232.5 kB / 1.114 GB, free: 5.684 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.606e-05/1.227, allocations: 47.42 kB / 1.114 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/1.229, allocations: 0.5818 MB / 1.115 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/1.229, allocations: 3.094 kB / 1.115 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/1.229, allocations: 2.391 kB / 1.115 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/1.229, allocations: 172.7 kB / 1.115 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.627e-05/1.229, allocations: 16.17 kB / 1.115 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/1.23, allocations: 57.95 kB / 1.115 GB, free: 5.234 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/1.23, allocations: 42.11 kB / 1.115 GB, free: 5.227 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001534/1.231, allocations: 0.7315 MB / 1.116 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001793/1.233, allocations: 1.112 MB / 1.117 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004924/1.234, allocations: 265.9 kB / 1.117 GB, free: 4.145 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003565/1.234, allocations: 260.6 kB / 1.117 GB, free: 4.012 MB / 0.8731 GB Notification: Performance of Backend: time 5.82e-07/1.234, allocations: 0 / 1.117 GB, free: 4.012 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002526/1.237, allocations: 0.9745 MB / 1.118 GB, free: 3.551 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002862/1.239, allocations: 1.441 MB / 1.119 GB, free: 2.555 MB / 0.8731 GB Notification: Performance of Templates: time 0.02701/1.266, allocations: 12.03 MB / 1.131 GB, free: 1.562 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches