Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.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.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat.terminal.i.1.|loa.i.1.|bat.SOC|sou.S.1.|bat.P|loa.S.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 111.9 kB / 16.42 MB, free: 6.473 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.001383/0.001384, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.546/1.546, 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 10.1.1-maint.10.0.x/package.mo): time 2.577/2.577, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 63.89 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086/1.088, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.006919/1.095, allocations: 4.216 MB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.003918/1.099, allocations: 1.947 MB / 1.173 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006541/1.1, allocations: 15.94 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001497/1.101, allocations: 401.9 kB / 1.174 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.00094/1.102, allocations: 230.6 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001384/1.104, allocations: 448.5 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001522/1.105, allocations: 0.9479 MB / 1.175 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/1.107, allocations: 1.022 MB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006481/1.108, allocations: 346.9 kB / 1.177 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008026/1.108, allocations: 394.2 kB / 1.177 GB, free: 9.863 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001993/1.109, allocations: 79.94 kB / 1.177 GB, free: 9.785 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005384/1.109, allocations: 207.7 kB / 1.177 GB, free: 9.582 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002781/1.109, allocations: 227.4 kB / 1.177 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005123/1.11, allocations: 378.1 kB / 1.178 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00141/1.111, allocations: 0.9576 MB / 1.179 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.111, allocations: 0 / 1.179 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.343e-06/1.111, allocations: 0 / 1.179 GB, free: 8.031 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.396e-05/1.111, allocations: 0 / 1.179 GB, free: 8.031 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.002213/1.114, allocations: 0.9995 MB / 1.18 GB, free: 6.98 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/1.114, allocations: 8.031 kB / 1.18 GB, free: 6.973 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006198/1.114, allocations: 120.4 kB / 1.18 GB, free: 6.855 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007598/1.115, allocations: 445.1 kB / 1.18 GB, free: 6.379 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-05/1.115, allocations: 62.38 kB / 1.18 GB, free: 6.32 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/1.115, allocations: 80.36 kB / 1.18 GB, free: 6.242 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/1.117, allocations: 0.8889 MB / 1.181 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/1.117, allocations: 3.938 kB / 1.181 GB, free: 5.281 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/1.117, allocations: 39.97 kB / 1.181 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.73e-05/1.117, allocations: 45.98 kB / 1.181 GB, free: 5.199 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/1.118, allocations: 0.5698 MB / 1.182 GB, free: 4.629 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004494/1.123, allocations: 3.713 MB / 1.186 GB, free: 0.6992 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007078/1.123, allocations: 394.7 kB / 1.186 GB, free: 272 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/1.124, allocations: 232.9 kB / 1.186 GB, free: 24 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/1.124, allocations: 8.375 kB / 1.186 GB, free: 16 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005135/1.124, allocations: 297 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of pre-optimization done (n=51): time 4.449e-06/1.124, allocations: 3.938 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of matching and sorting (n=51): time 0.0009913/1.125, allocations: 0.4892 MB / 1.187 GB, free: 15.2 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.126, allocations: 204 kB / 1.187 GB, free: 14.96 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/1.126, allocations: 417.4 kB / 1.188 GB, free: 14.54 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/1.126, allocations: 45.7 kB / 1.188 GB, free: 14.49 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002699/1.126, allocations: 336.6 kB / 1.188 GB, free: 14.16 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/1.127, allocations: 150.8 kB / 1.188 GB, free: 14.01 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/1.127, allocations: 178.5 kB / 1.188 GB, free: 13.83 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001602/1.127, allocations: 358.8 kB / 1.189 GB, free: 13.47 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/1.127, allocations: 176.8 kB / 1.189 GB, free: 13.29 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004787/1.128, allocations: 400.4 kB / 1.189 GB, free: 12.8 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/1.129, allocations: 0.5157 MB / 1.19 GB, free: 12.19 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/1.129, allocations: 4 kB / 1.19 GB, free: 12.18 MB / 0.92 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001105/1.13, allocations: 0.6197 MB / 1.19 GB, free: 11.56 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/1.13, allocations: 11.94 kB / 1.19 GB, free: 11.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/1.13, allocations: 8 kB / 1.19 GB, free: 11.54 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.832e-05/1.13, allocations: 12 kB / 1.19 GB, free: 11.53 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/1.13, allocations: 99.7 kB / 1.19 GB, free: 11.43 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/1.13, allocations: 19.92 kB / 1.19 GB, free: 11.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/1.131, allocations: 75.88 kB / 1.19 GB, free: 11.34 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.246e-05/1.131, allocations: 43.98 kB / 1.19 GB, free: 11.29 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005129/1.131, allocations: 326 kB / 1.191 GB, free: 10.97 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004832/1.132, allocations: 408.3 kB / 1.191 GB, free: 10.46 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006872/1.132, allocations: 0.5223 MB / 1.192 GB, free: 9.84 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/1.132, allocations: 4 kB / 1.192 GB, free: 9.836 MB / 0.92 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001029/1.133, allocations: 0.6049 MB / 1.192 GB, free: 9.223 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/1.133, allocations: 15.98 kB / 1.192 GB, free: 9.207 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/1.134, allocations: 4 kB / 1.192 GB, free: 9.203 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/1.134, allocations: 15.94 kB / 1.192 GB, free: 9.188 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/1.134, allocations: 103.8 kB / 1.192 GB, free: 9.086 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.097e-05/1.134, allocations: 16.47 kB / 1.192 GB, free: 9.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/1.134, allocations: 71.55 kB / 1.193 GB, free: 9 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.437e-05/1.134, allocations: 35.98 kB / 1.193 GB, free: 8.965 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.activeSteps,toOff.enableFire,toOff.localCondition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.localCondition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.localCondition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.localCondition,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition1,toOn.t_start,$PRE.toOn.t_start,toHold.t_start,$PRE.toHold.t_start,toDischarge.t_start,$PRE.toDischarge.t_start,toOff.t_start,$PRE.toOff.t_start,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * 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.0002208/1.135, allocations: 249.2 kB / 1.193 GB, free: 8.715 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-05/1.135, allocations: 51.61 kB / 1.193 GB, free: 8.664 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007372/1.135, allocations: 401.1 kB / 1.193 GB, free: 8.27 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/1.135, allocations: 11.92 kB / 1.193 GB, free: 8.258 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/1.135, allocations: 4 kB / 1.193 GB, free: 8.254 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001998/1.136, allocations: 156.7 kB / 1.193 GB, free: 8.082 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.712e-05/1.136, allocations: 12 kB / 1.193 GB, free: 8.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/1.136, allocations: 15.98 kB / 1.193 GB, free: 8.055 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/1.136, allocations: 52.31 kB / 1.193 GB, free: 8.004 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001004/1.137, allocations: 0.867 MB / 1.194 GB, free: 7.121 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001188/1.138, allocations: 1.097 MB / 1.195 GB, free: 6.012 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002894/1.139, allocations: 183.4 kB / 1.196 GB, free: 5.832 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003403/1.139, allocations: 259.1 kB / 1.196 GB, free: 5.578 MB / 0.92 GB Notification: Performance of Backend: time 8.31e-07/1.139, allocations: 0 / 1.196 GB, free: 5.578 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002143/1.141, allocations: 0.7957 MB / 1.197 GB, free: 4.773 MB / 0.92 GB Notification: Performance of SimCode: time 0.00233/1.143, allocations: 1.44 MB / 1.198 GB, free: 3.293 MB / 0.92 GB Notification: Performance of Templates: time 0.01894/1.162, allocations: 8.36 MB / 1.206 GB, free: 10.98 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Storage_Examples_Battery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Storage.Examples.Battery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches