Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.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.PVSimple,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") translateModel(Buildings.Electrical.DC.Sources.Examples.PVSimple,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 99.16 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.001432/0.001432, allocations: 177.3 kB / 15.94 MB, free: 220 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.502/1.502, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.673/2.673, allocations: 436.5 MB / 0.7104 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003643, allocations: 8 kB / 0.8708 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8258/0.8261, allocations: 153.7 MB / 1.021 GB, free: 1.309 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimple): time 0.008819/0.835, allocations: 6.785 MB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1695/1.005, allocations: 129.1 MB / 1.154 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/1.006, allocations: 23.88 kB / 1.154 GB, free: 9.031 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006961/1.007, allocations: 146.7 kB / 1.154 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003191/1.01, allocations: 0.7264 MB / 1.154 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00325/1.013, allocations: 0.9062 MB / 1.155 GB, free: 7.262 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003/1.016, allocations: 1.346 MB / 1.157 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002266/1.019, allocations: 1.336 MB / 1.158 GB, free: 4.523 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001098/1.02, allocations: 0.6068 MB / 1.158 GB, free: 3.914 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009759/1.021, allocations: 0.6724 MB / 1.159 GB, free: 3.238 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001501/1.021, allocations: 52 kB / 1.159 GB, free: 3.188 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001163/1.022, allocations: 399.5 kB / 1.16 GB, free: 2.797 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.00036/1.022, allocations: 354.6 kB / 1.16 GB, free: 2.449 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003572/1.023, allocations: 332.7 kB / 1.16 GB, free: 2.117 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002458/1.025, allocations: 2.131 MB / 1.162 GB, free: 15.98 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/1.025, allocations: 4 kB / 1.162 GB, free: 15.97 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.134e-06/1.025, allocations: 0 / 1.162 GB, free: 15.97 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.178e-05/1.025, allocations: 0 / 1.162 GB, free: 15.97 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: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.004278/1.03, allocations: 1.906 MB / 1.164 GB, free: 14.02 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/1.03, allocations: 11.98 kB / 1.164 GB, free: 14 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006274/1.036, allocations: 0.977 MB / 1.165 GB, free: 13.02 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/1.038, allocations: 1.051 MB / 1.166 GB, free: 11.93 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/1.039, allocations: 131.4 kB / 1.166 GB, free: 11.8 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/1.039, allocations: 164 kB / 1.166 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004689/1.043, allocations: 2.195 MB / 1.169 GB, free: 9.375 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/1.044, allocations: 0 / 1.169 GB, free: 9.375 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/1.044, allocations: 75.94 kB / 1.169 GB, free: 9.301 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.138e-05/1.044, allocations: 75.27 kB / 1.169 GB, free: 9.227 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005798/1.05, allocations: 2.553 MB / 1.171 GB, free: 6.668 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01202/1.062, allocations: 6.761 MB / 1.178 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00435/1.066, allocations: 1.722 MB / 1.18 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007034/1.067, allocations: 494.7 kB / 1.18 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00239/1.069, allocations: 1.059 MB / 1.181 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=144): time 3.828e-06/1.069, allocations: 0 / 1.181 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of matching and sorting (n=144): time 0.006509/1.076, allocations: 2.464 MB / 1.183 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/1.076, allocations: 304 kB / 1.184 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/1.077, allocations: 0.9161 MB / 1.185 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001506/1.078, allocations: 53.7 kB / 1.185 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000597/1.078, allocations: 0.6716 MB / 1.185 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004455/1.079, allocations: 477.1 kB / 1.186 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.686e-05/1.079, allocations: 28 kB / 1.186 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001564/1.079, allocations: 365.9 kB / 1.186 GB, free: 6.902 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/1.081, allocations: 0.6559 MB / 1.187 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/1.083, allocations: 0.8691 MB / 1.188 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/1.085, allocations: 0.7169 MB / 1.188 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/1.085, allocations: 0 / 1.188 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004522/1.089, allocations: 1.785 MB / 1.19 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005114/1.09, allocations: 1.139 MB / 1.191 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/1.09, allocations: 4 kB / 1.191 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/1.09, allocations: 36.83 kB / 1.191 GB, free: 1.531 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/1.092, allocations: 363.4 kB / 1.192 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/1.093, allocations: 1.307 MB / 1.193 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/1.095, allocations: 227.6 kB / 1.193 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/1.095, allocations: 63.95 kB / 1.193 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/1.095, allocations: 4 kB / 1.193 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004023/1.099, allocations: 1.635 MB / 1.195 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/1.099, allocations: 4 kB / 1.195 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/1.099, allocations: 8 kB / 1.195 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/1.101, allocations: 367.6 kB / 1.195 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/1.101, allocations: 8 kB / 1.195 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/1.103, allocations: 229.4 kB / 1.195 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/1.103, allocations: 63.95 kB / 1.195 GB, free: 13.15 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.HDifTil.incAng.decAng.tNext,HDifTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,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.001102/1.104, allocations: 474.9 kB / 1.196 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003012/1.104, allocations: 134.3 kB / 1.196 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005466/1.11, allocations: 2.124 MB / 1.198 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/1.11, allocations: 23.89 kB / 1.198 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/1.11, allocations: 0 / 1.198 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.11, allocations: 11.95 kB / 1.198 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/1.113, allocations: 2.026 MB / 1.2 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/1.113, allocations: 3.938 kB / 1.2 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/1.114, allocations: 327.6 kB / 1.2 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/1.115, allocations: 28.84 kB / 1.2 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/1.115, allocations: 47.95 kB / 1.2 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/1.116, allocations: 1.28 MB / 1.202 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.116, allocations: 0 / 1.202 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004707/1.121, allocations: 1.876 MB / 1.204 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008582/1.121, allocations: 450.7 kB / 1.204 GB, free: 4.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/1.122, allocations: 32 kB / 1.204 GB, free: 4.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/1.123, allocations: 163.8 kB / 1.204 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/1.123, allocations: 113.1 kB / 1.204 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/1.123, allocations: 59.95 kB / 1.204 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009826/1.124, allocations: 0.6553 MB / 1.205 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.91e-07/1.124, allocations: 3.938 kB / 1.205 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002097/1.127, allocations: 0.8173 MB / 1.206 GB, free: 2.238 MB / 0.9512 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,HDifTil.incAng.decAng.tNext,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,HDirTil.incAng.decAng.tNext,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.001582/1.128, allocations: 0.6396 MB / 1.206 GB, free: 1.773 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006759/1.135, allocations: 2.673 MB / 1.209 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/1.135, allocations: 384 / 1.209 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002168/1.137, allocations: 1.013 MB / 1.21 GB, free: 14.07 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.139, allocations: 292.4 kB / 1.21 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006247/1.145, allocations: 3.689 MB / 1.214 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009055/1.146, allocations: 1.348 MB / 1.215 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002536/1.148, allocations: 0.5418 MB / 1.216 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005545/1.149, allocations: 167.3 kB / 1.216 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of SimCode: time 9.62e-07/1.149, allocations: 0 / 1.216 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of Templates: time 0.03629/1.185, allocations: 21.15 MB / 1.237 GB, free: 2.984 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_PVSimple.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches