Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 97.11 kB / 19.7 MB, free: 2.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 210.6 kB / 23 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.334/3.334, allocations: 0.49 GB / 0.7959 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002984/0.002984, allocations: 74.92 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4353/0.4383, allocations: 176.1 MB / 1.327 GB, free: 1.188 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.008347/0.4466, allocations: 4.29 MB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005097/0.4517, allocations: 2.154 MB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005701/0.4523, allocations: 15.88 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001497/0.4538, allocations: 411.8 kB / 1.334 GB, free: 10.3 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.4548, allocations: 362.1 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.456, allocations: 420.6 kB / 1.335 GB, free: 9.535 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001056/0.457, allocations: 0.8217 MB / 1.335 GB, free: 8.711 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007648/0.4578, allocations: 480.8 kB / 1.336 GB, free: 8.23 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000505/0.4583, allocations: 342.8 kB / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005516/0.4588, allocations: 374.5 kB / 1.336 GB, free: 7.527 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.4589, allocations: 71.94 kB / 1.337 GB, free: 7.457 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006211/0.4596, allocations: 323.5 kB / 1.337 GB, free: 7.141 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.4598, allocations: 211.3 kB / 1.337 GB, free: 6.934 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.4601, allocations: 274.7 kB / 1.337 GB, free: 6.664 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.4614, allocations: 1.012 MB / 1.338 GB, free: 5.648 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4614, allocations: 4 kB / 1.338 GB, free: 5.645 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4614, allocations: 4 kB / 1.338 GB, free: 5.641 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.582e-05/0.4614, allocations: 0 / 1.338 GB, free: 5.641 MB / 1.029 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.002053/0.4635, allocations: 0.9082 MB / 1.339 GB, free: 4.695 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.4635, allocations: 8.031 kB / 1.339 GB, free: 4.688 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007041/0.4642, allocations: 144.3 kB / 1.339 GB, free: 4.547 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007515/0.465, allocations: 397.3 kB / 1.34 GB, free: 4.133 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.465, allocations: 41.31 kB / 1.34 GB, free: 4.094 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.4651, allocations: 52.38 kB / 1.34 GB, free: 4.043 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.4664, allocations: 0.7721 MB / 1.341 GB, free: 3.219 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4665, allocations: 0 / 1.341 GB, free: 3.219 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.784e-05/0.4665, allocations: 24 kB / 1.341 GB, free: 3.195 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.394e-05/0.4666, allocations: 52.97 kB / 1.341 GB, free: 3.145 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.4677, allocations: 0.5581 MB / 1.341 GB, free: 2.586 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.471, allocations: 1.934 MB / 1.343 GB, free: 0.5898 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.4721, allocations: 0.5309 MB / 1.344 GB, free: 40 kB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004657/0.4726, allocations: 241.4 kB / 1.344 GB, free: 15.8 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002741/0.4729, allocations: 43.95 kB / 1.344 GB, free: 15.75 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000762/0.4737, allocations: 400.2 kB / 1.344 GB, free: 15.34 MB / 1.045 GB Notification: Performance of pre-optimization done (n=46): time 2.324e-06/0.4737, allocations: 0 / 1.344 GB, free: 15.34 MB / 1.045 GB Notification: Performance of matching and sorting (n=46): time 0.001612/0.4753, allocations: 0.7397 MB / 1.345 GB, free: 14.6 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.4753, allocations: 85.11 kB / 1.345 GB, free: 14.5 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.4758, allocations: 365.6 kB / 1.345 GB, free: 14.13 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/0.4759, allocations: 45.69 kB / 1.345 GB, free: 14.08 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.4762, allocations: 292.9 kB / 1.346 GB, free: 13.79 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.4763, allocations: 150.8 kB / 1.346 GB, free: 13.64 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.4765, allocations: 114.3 kB / 1.346 GB, free: 13.52 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4767, allocations: 354.8 kB / 1.346 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.4772, allocations: 269.2 kB / 1.347 GB, free: 12.89 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006372/0.4779, allocations: 466.4 kB / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009714/0.4788, allocations: 0.5665 MB / 1.348 GB, free: 11.75 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4788, allocations: 0 / 1.348 GB, free: 11.75 MB / 1.045 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0013/0.4801, allocations: 0.7087 MB / 1.348 GB, free: 11.03 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.4802, allocations: 37.64 kB / 1.348 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4802, allocations: 4.188 kB / 1.348 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.4802, allocations: 8.25 kB / 1.348 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005417/0.4808, allocations: 111.8 kB / 1.348 GB, free: 10.86 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4808, allocations: 4 kB / 1.348 GB, free: 10.86 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.4813, allocations: 75.61 kB / 1.348 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.4813, allocations: 20 kB / 1.348 GB, free: 10.77 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006688/0.482, allocations: 399 kB / 1.349 GB, free: 10.36 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006205/0.4826, allocations: 438.9 kB / 1.349 GB, free: 9.863 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009269/0.4835, allocations: 0.5249 MB / 1.35 GB, free: 9.297 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.4835, allocations: 3.938 kB / 1.35 GB, free: 9.293 MB / 1.045 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001207/0.4848, allocations: 0.6505 MB / 1.35 GB, free: 8.625 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.4848, allocations: 37.69 kB / 1.35 GB, free: 8.582 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4848, allocations: 4 kB / 1.35 GB, free: 8.578 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.4848, allocations: 4 kB / 1.35 GB, free: 8.574 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.4853, allocations: 100 kB / 1.351 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4853, allocations: 8.25 kB / 1.351 GB, free: 8.469 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004676/0.4858, allocations: 75.67 kB / 1.351 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.4858, allocations: 20 kB / 1.351 GB, free: 8.375 MB / 1.045 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.0002854/0.4861, allocations: 226.5 kB / 1.351 GB, free: 8.148 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.4862, allocations: 51.7 kB / 1.351 GB, free: 8.098 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.4874, allocations: 0.5802 MB / 1.352 GB, free: 7.512 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.4875, allocations: 3.984 kB / 1.352 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4875, allocations: 0 / 1.352 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.4877, allocations: 103.6 kB / 1.352 GB, free: 7.406 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.609e-05/0.4878, allocations: 19.98 kB / 1.352 GB, free: 7.387 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/0.4883, allocations: 55.86 kB / 1.352 GB, free: 7.332 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.4884, allocations: 47.92 kB / 1.352 GB, free: 7.285 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001454/0.4899, allocations: 0.7298 MB / 1.352 GB, free: 6.547 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001675/0.4915, allocations: 1.105 MB / 1.354 GB, free: 5.422 MB / 1.045 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004695/0.492, allocations: 259.5 kB / 1.354 GB, free: 5.168 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003227/0.4923, allocations: 259.2 kB / 1.354 GB, free: 4.918 MB / 1.045 GB Notification: Performance of Backend: time 7.82e-07/0.4923, allocations: 0 / 1.354 GB, free: 4.918 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002328/0.4947, allocations: 0.9538 MB / 1.355 GB, free: 3.922 MB / 1.045 GB Notification: Performance of SimCode: time 0.002228/0.4969, allocations: 1.474 MB / 1.356 GB, free: 2.406 MB / 1.045 GB Notification: Performance of Templates: time 0.02364/0.5205, allocations: 13.87 MB / 1.37 GB, free: 4.746 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.743981330000679]