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.001316/0.001316, allocations: 111 kB / 16.42 MB, free: 6.523 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.001439/0.001439, allocations: 183.9 kB / 17.34 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.476/1.476, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.79/2.79, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 63.91 kB / 1.019 GB, free: 9.465 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.248/1.249, allocations: 151.6 MB / 1.167 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.008157/1.257, allocations: 4.444 MB / 1.172 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00465/1.262, allocations: 2.171 MB / 1.174 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006574/1.263, allocations: 11.94 kB / 1.174 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001521/1.264, allocations: 425.9 kB / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001421/1.266, allocations: 354.1 kB / 1.175 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001324/1.267, allocations: 417.3 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001479/1.269, allocations: 0.8294 MB / 1.176 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/1.27, allocations: 0.5631 MB / 1.176 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008369/1.271, allocations: 330.8 kB / 1.177 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008948/1.272, allocations: 362.5 kB / 1.177 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002668/1.272, allocations: 72 kB / 1.177 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009298/1.273, allocations: 331.5 kB / 1.177 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003773/1.273, allocations: 203.4 kB / 1.178 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005756/1.274, allocations: 334.3 kB / 1.178 GB, free: 9.07 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001833/1.276, allocations: 0.9968 MB / 1.179 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.079e-05/1.276, allocations: 0 / 1.179 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.564e-06/1.276, allocations: 0 / 1.179 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.111e-05/1.276, allocations: 0 / 1.179 GB, free: 8.074 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.002985/1.279, allocations: 0.9913 MB / 1.18 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/1.279, allocations: 8.031 kB / 1.18 GB, free: 7.016 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008944/1.28, allocations: 136.4 kB / 1.18 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000914/1.281, allocations: 455.2 kB / 1.18 GB, free: 6.398 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.098e-05/1.281, allocations: 41.31 kB / 1.18 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/1.281, allocations: 56.36 kB / 1.18 GB, free: 6.305 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/1.282, allocations: 0.6929 MB / 1.181 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/1.282, allocations: 0 / 1.181 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.502e-05/1.282, allocations: 23.97 kB / 1.181 GB, free: 5.559 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.035e-05/1.283, allocations: 52.97 kB / 1.181 GB, free: 5.508 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/1.284, allocations: 0.5659 MB / 1.182 GB, free: 4.941 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/1.288, allocations: 2.897 MB / 1.185 GB, free: 1.801 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/1.289, allocations: 0.5663 MB / 1.185 GB, free: 1.215 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004793/1.29, allocations: 241.6 kB / 1.185 GB, free: 0.9727 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006582/1.29, allocations: 0.5701 MB / 1.186 GB, free: 280 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008298/1.291, allocations: 400.2 kB / 1.186 GB, free: 15.86 MB / 0.92 GB Notification: Performance of pre-optimization done (n=46): time 2.695e-06/1.291, allocations: 0 / 1.186 GB, free: 15.86 MB / 0.92 GB Notification: Performance of matching and sorting (n=46): time 0.00183/1.293, allocations: 0.7395 MB / 1.187 GB, free: 15.11 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/1.293, allocations: 85.11 kB / 1.187 GB, free: 15.01 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/1.294, allocations: 365.6 kB / 1.187 GB, free: 14.64 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.629e-05/1.294, allocations: 45.69 kB / 1.187 GB, free: 14.59 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000265/1.294, allocations: 292.9 kB / 1.188 GB, free: 14.3 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000163/1.294, allocations: 154.7 kB / 1.188 GB, free: 14.15 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/1.295, allocations: 106.4 kB / 1.188 GB, free: 14.04 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001555/1.295, allocations: 362.8 kB / 1.188 GB, free: 13.68 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/1.295, allocations: 235 kB / 1.189 GB, free: 13.45 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000607/1.296, allocations: 358.6 kB / 1.189 GB, free: 13.05 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/1.297, allocations: 0.578 MB / 1.189 GB, free: 12.43 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/1.297, allocations: 4 kB / 1.189 GB, free: 12.43 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001484/1.298, allocations: 0.691 MB / 1.19 GB, free: 11.72 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/1.299, allocations: 33.7 kB / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.299, allocations: 0 / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.262e-05/1.299, allocations: 8 kB / 1.19 GB, free: 11.68 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/1.299, allocations: 103.8 kB / 1.19 GB, free: 11.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.818e-05/1.299, allocations: 11.98 kB / 1.19 GB, free: 11.56 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/1.3, allocations: 67.94 kB / 1.19 GB, free: 11.5 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/1.3, allocations: 23.98 kB / 1.19 GB, free: 11.47 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006724/1.3, allocations: 365.1 kB / 1.191 GB, free: 11.11 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005895/1.301, allocations: 339.2 kB / 1.191 GB, free: 10.73 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008783/1.302, allocations: 0.5174 MB / 1.192 GB, free: 10.18 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.34e-06/1.302, allocations: 4 kB / 1.192 GB, free: 10.17 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001213/1.303, allocations: 0.6257 MB / 1.192 GB, free: 9.535 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/1.303, allocations: 33.7 kB / 1.192 GB, free: 9.496 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/1.303, allocations: 7.984 kB / 1.192 GB, free: 9.488 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/1.303, allocations: 7.984 kB / 1.192 GB, free: 9.48 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004054/1.304, allocations: 100.1 kB / 1.192 GB, free: 9.383 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.304, allocations: 12 kB / 1.192 GB, free: 9.371 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/1.304, allocations: 67.62 kB / 1.192 GB, free: 9.305 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/1.304, allocations: 23.98 kB / 1.192 GB, free: 9.281 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.0002371/1.305, allocations: 218.3 kB / 1.193 GB, free: 9.062 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/1.305, allocations: 47.72 kB / 1.193 GB, free: 9.016 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/1.306, allocations: 0.5879 MB / 1.193 GB, free: 8.422 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/1.306, allocations: 3.984 kB / 1.193 GB, free: 8.418 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.306, allocations: 0 / 1.193 GB, free: 8.418 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/1.306, allocations: 180.6 kB / 1.193 GB, free: 8.223 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/1.307, allocations: 15.94 kB / 1.193 GB, free: 8.207 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/1.307, allocations: 55.91 kB / 1.194 GB, free: 8.152 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/1.307, allocations: 43.94 kB / 1.194 GB, free: 8.109 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001513/1.309, allocations: 0.7337 MB / 1.194 GB, free: 7.367 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001713/1.31, allocations: 1.117 MB / 1.195 GB, free: 6.238 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004865/1.311, allocations: 271.6 kB / 1.196 GB, free: 5.973 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000345/1.311, allocations: 259.2 kB / 1.196 GB, free: 5.723 MB / 0.92 GB Notification: Performance of Backend: time 2.8e-07/1.311, allocations: 0 / 1.196 GB, free: 5.723 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002399/1.314, allocations: 0.9661 MB / 1.197 GB, free: 4.734 MB / 0.92 GB Notification: Performance of SimCode: time 0.002487/1.316, allocations: 1.461 MB / 1.198 GB, free: 3.227 MB / 0.92 GB Notification: Performance of Templates: time 0.02339/1.34, allocations: 12.02 MB / 1.21 GB, free: 7.305 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