Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Sources.Examples.PVSimpleOriented,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented") translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001617, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002125/0.002125, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.623/2.623, allocations: 436.5 MB / 0.7104 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 8 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7176/0.7179, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented): time 0.01012/0.7281, allocations: 7.241 MB / 1.028 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1788/0.907, allocations: 129.2 MB / 1.154 GB, free: 8.281 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.9088, allocations: 27.81 kB / 1.154 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0007274/0.9095, allocations: 154.7 kB / 1.154 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002979/0.9125, allocations: 0.7501 MB / 1.155 GB, free: 7.352 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003007/0.9155, allocations: 0.906 MB / 1.156 GB, free: 6.453 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00346/0.919, allocations: 1.4 MB / 1.157 GB, free: 5.047 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.9216, allocations: 1.455 MB / 1.159 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.923, allocations: 0.6379 MB / 1.159 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.9241, allocations: 0.6802 MB / 1.16 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.9243, allocations: 52 kB / 1.16 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.9258, allocations: 395.5 kB / 1.16 GB, free: 1.781 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000445/0.9263, allocations: 358.5 kB / 1.161 GB, free: 1.43 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005366/0.9268, allocations: 364.7 kB / 1.161 GB, free: 1.066 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002968/0.9298, allocations: 2.478 MB / 1.163 GB, free: 14.58 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.9298, allocations: 3.938 kB / 1.163 GB, free: 14.58 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.487e-06/0.9298, allocations: 0 / 1.163 GB, free: 14.58 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.112e-05/0.9299, allocations: 4 kB / 1.163 GB, free: 14.57 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.004786/0.9347, allocations: 1.961 MB / 1.165 GB, free: 12.55 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.9347, allocations: 15.92 kB / 1.165 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006488/0.9412, allocations: 0.9963 MB / 1.166 GB, free: 11.54 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002848/0.9441, allocations: 1.145 MB / 1.167 GB, free: 10.35 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.9443, allocations: 135.5 kB / 1.168 GB, free: 10.21 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004228/0.9447, allocations: 176 kB / 1.168 GB, free: 10.04 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00617/0.9509, allocations: 2.323 MB / 1.17 GB, free: 7.656 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.587e-05/0.951, allocations: 7.938 kB / 1.17 GB, free: 7.648 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002534/0.9513, allocations: 83.98 kB / 1.17 GB, free: 7.566 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.9514, allocations: 87.45 kB / 1.17 GB, free: 7.48 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007052/0.9584, allocations: 2.671 MB / 1.173 GB, free: 4.805 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01583/0.9743, allocations: 7.425 MB / 1.18 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/0.9792, allocations: 1.758 MB / 1.182 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007652/0.98, allocations: 491.1 kB / 1.182 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002651/0.9827, allocations: 1.089 MB / 1.183 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=144): time 6.883e-06/0.9828, allocations: 0 / 1.183 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of matching and sorting (n=144): time 0.007105/0.9899, allocations: 2.518 MB / 1.186 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/0.9901, allocations: 308 kB / 1.186 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/0.9919, allocations: 0.9416 MB / 1.187 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001985/0.9921, allocations: 53.7 kB / 1.187 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008099/0.9929, allocations: 0.7181 MB / 1.188 GB, free: 5.035 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005428/0.9935, allocations: 469.2 kB / 1.188 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.9936, allocations: 28 kB / 1.188 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001825/0.9938, allocations: 357.9 kB / 1.189 GB, free: 4.188 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.9957, allocations: 0.6793 MB / 1.189 GB, free: 3.508 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002083/0.9978, allocations: 0.8886 MB / 1.19 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.9998, allocations: 0.7404 MB / 1.191 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.9999, allocations: 0 / 1.191 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004851/1.005, allocations: 1.816 MB / 1.193 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004639/1.005, allocations: 1.143 MB / 1.194 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/1.005, allocations: 0 / 1.194 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/1.005, allocations: 44.83 kB / 1.194 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/1.007, allocations: 351.5 kB / 1.194 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/1.009, allocations: 1.311 MB / 1.195 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/1.011, allocations: 227.9 kB / 1.196 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/1.011, allocations: 63.95 kB / 1.196 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.011, allocations: 4 kB / 1.196 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004394/1.015, allocations: 1.667 MB / 1.197 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/1.015, allocations: 4.188 kB / 1.197 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/1.015, allocations: 15.95 kB / 1.197 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001863/1.017, allocations: 363.5 kB / 1.198 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.631e-05/1.017, allocations: 15.94 kB / 1.198 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/1.019, allocations: 221.7 kB / 1.198 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001575/1.019, allocations: 59.95 kB / 1.198 GB, free: 10.3 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pv.HDifTil.incAng.decAng.tNext,pv.HDifTil.incAng.decAng.tNext,$PRE.pv.HDirTil.incAng.decAng.tNext,pv.HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001137/1.02, allocations: 0.4951 MB / 1.198 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004277/1.021, allocations: 134.3 kB / 1.199 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005752/1.027, allocations: 2.144 MB / 1.201 GB, free: 7.508 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/1.027, allocations: 16 kB / 1.201 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/1.027, allocations: 0 / 1.201 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/1.027, allocations: 7.969 kB / 1.201 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/1.03, allocations: 2.178 MB / 1.203 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/1.03, allocations: 0 / 1.203 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/1.032, allocations: 335.6 kB / 1.203 GB, free: 4.918 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/1.032, allocations: 28.84 kB / 1.203 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/1.032, allocations: 51.91 kB / 1.203 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009699/1.033, allocations: 1.28 MB / 1.204 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.033, allocations: 4.031 kB / 1.204 GB, free: 3.418 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005064/1.038, allocations: 1.915 MB / 1.206 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.039, allocations: 474.7 kB / 1.207 GB, free: 0.9805 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003517/1.04, allocations: 31.94 kB / 1.207 GB, free: 0.9492 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.042, allocations: 159.8 kB / 1.207 GB, free: 0.793 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/1.042, allocations: 113.1 kB / 1.207 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/1.042, allocations: 67.94 kB / 1.207 GB, free: 0.6172 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001268/1.043, allocations: 0.6476 MB / 1.208 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/1.043, allocations: 0 / 1.208 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003184/1.046, allocations: 0.8405 MB / 1.209 GB, free: 15.11 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pv.HDifTil.incAng.decAng.tNext,pv.HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 7 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,pv.HDirTil.incAng.decAng.tNext,pv.HDifTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001748/1.048, allocations: 0.6406 MB / 1.209 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.007468/1.056, allocations: 2.739 MB / 1.212 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.056, allocations: 0 / 1.212 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002655/1.058, allocations: 1.045 MB / 1.213 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/1.06, allocations: 297.3 kB / 1.213 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007631/1.068, allocations: 3.829 MB / 1.217 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/1.069, allocations: 1.364 MB / 1.218 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.003051/1.072, allocations: 0.5612 MB / 1.219 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006096/1.073, allocations: 167.3 kB / 1.219 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of SimCode: time 6.62e-07/1.073, allocations: 0 / 1.219 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of Templates: time 0.04008/1.113, allocations: 21.05 MB / 1.24 GB, free: 15.68 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches