Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Sources.Examples.PVSimpleOriented,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I",fileNamePrefix="Buildings_9_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_9_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.0009554/0.0009553, 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.0009258/0.000926, allocations: 177.3 kB / 15.94 MB, free: 228 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.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.42/2.42, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004036, allocations: 12 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.826/0.8264, allocations: 142.3 MB / 0.9535 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented): time 0.00962/0.8361, allocations: 7.233 MB / 0.9606 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1853/1.022, allocations: 129.2 MB / 1.087 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/1.024, allocations: 23.88 kB / 1.087 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008885/1.025, allocations: 154.7 kB / 1.087 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.003408/1.028, allocations: 0.7376 MB / 1.088 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003197/1.031, allocations: 0.9119 MB / 1.089 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003384/1.035, allocations: 1.393 MB / 1.09 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002535/1.037, allocations: 1.459 MB / 1.091 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/1.039, allocations: 0.6496 MB / 1.092 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/1.04, allocations: 0.6685 MB / 1.093 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001895/1.04, allocations: 56 kB / 1.093 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/1.042, allocations: 395.5 kB / 1.093 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003806/1.042, allocations: 366.5 kB / 1.093 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004722/1.042, allocations: 368.6 kB / 1.094 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003002/1.045, allocations: 2.466 MB / 1.096 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/1.045, allocations: 0 / 1.096 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.505e-06/1.045, allocations: 0 / 1.096 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.65e-05/1.046, allocations: 0 / 1.096 GB, free: 13.67 MB / 0.8575 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.004937/1.05, allocations: 1.965 MB / 1.098 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.051, allocations: 8.031 kB / 1.098 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006533/1.057, allocations: 0.9963 MB / 1.099 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002791/1.06, allocations: 1.145 MB / 1.1 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/1.06, allocations: 139.6 kB / 1.1 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/1.06, allocations: 180 kB / 1.1 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005496/1.066, allocations: 2.333 MB / 1.103 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/1.066, allocations: 3.938 kB / 1.103 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/1.066, allocations: 72 kB / 1.103 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-05/1.066, allocations: 91.41 kB / 1.103 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006624/1.073, allocations: 2.675 MB / 1.106 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01343/1.086, allocations: 7.42 MB / 1.113 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/1.091, allocations: 1.775 MB / 1.115 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000783/1.092, allocations: 486.8 kB / 1.115 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002615/1.095, allocations: 1.082 MB / 1.116 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=144): time 3.837e-06/1.095, allocations: 0 / 1.116 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of matching and sorting (n=144): time 0.006862/1.101, allocations: 2.526 MB / 1.118 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/1.102, allocations: 296 kB / 1.119 GB, free: 5.879 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/1.103, allocations: 0.9416 MB / 1.12 GB, free: 4.918 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001675/1.104, allocations: 53.7 kB / 1.12 GB, free: 4.859 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007662/1.104, allocations: 0.7181 MB / 1.12 GB, free: 4.129 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005226/1.105, allocations: 473.3 kB / 1.121 GB, free: 3.66 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.583e-05/1.105, allocations: 24 kB / 1.121 GB, free: 3.637 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001844/1.105, allocations: 361.9 kB / 1.121 GB, free: 3.277 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/1.107, allocations: 0.6832 MB / 1.122 GB, free: 2.594 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/1.109, allocations: 0.8886 MB / 1.123 GB, free: 1.645 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/1.111, allocations: 0.7481 MB / 1.124 GB, free: 0.8945 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/1.111, allocations: 0 / 1.124 GB, free: 0.8945 MB / 0.8731 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004881/1.116, allocations: 1.808 MB / 1.125 GB, free: 15.07 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005626/1.117, allocations: 1.15 MB / 1.126 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/1.117, allocations: 4 kB / 1.126 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/1.117, allocations: 28.84 kB / 1.126 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/1.119, allocations: 363.5 kB / 1.127 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/1.12, allocations: 1.301 MB / 1.128 GB, free: 12.02 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/1.122, allocations: 228.4 kB / 1.128 GB, free: 11.8 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/1.123, allocations: 59.95 kB / 1.128 GB, free: 11.74 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.123, allocations: 4 kB / 1.128 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004683/1.127, allocations: 1.667 MB / 1.13 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.127, allocations: 4 kB / 1.13 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/1.127, allocations: 8 kB / 1.13 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/1.129, allocations: 371.6 kB / 1.13 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/1.129, allocations: 11.98 kB / 1.13 GB, free: 9.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/1.131, allocations: 218.7 kB / 1.131 GB, free: 9.465 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/1.132, allocations: 59.95 kB / 1.131 GB, free: 9.406 MB / 0.8887 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.001332/1.133, allocations: 0.5068 MB / 1.131 GB, free: 8.891 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004931/1.133, allocations: 138.3 kB / 1.131 GB, free: 8.754 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005918/1.139, allocations: 2.132 MB / 1.133 GB, free: 6.605 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/1.139, allocations: 19.94 kB / 1.133 GB, free: 6.586 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.139, allocations: 3.953 kB / 1.133 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/1.139, allocations: 7.969 kB / 1.133 GB, free: 6.574 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/1.144, allocations: 2.182 MB / 1.135 GB, free: 4.324 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/1.144, allocations: 0 / 1.135 GB, free: 4.324 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/1.145, allocations: 327.6 kB / 1.136 GB, free: 4.004 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001632/1.146, allocations: 24.84 kB / 1.136 GB, free: 3.977 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/1.146, allocations: 51.95 kB / 1.136 GB, free: 3.926 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/1.147, allocations: 1.28 MB / 1.137 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.147, allocations: 4.062 kB / 1.137 GB, free: 2.504 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005715/1.153, allocations: 1.923 MB / 1.139 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/1.154, allocations: 466.7 kB / 1.139 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005195/1.155, allocations: 32 kB / 1.139 GB, free: 36 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00187/1.156, allocations: 164.4 kB / 1.14 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/1.157, allocations: 109.1 kB / 1.14 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/1.157, allocations: 63.95 kB / 1.14 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001311/1.158, allocations: 0.6553 MB / 1.14 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.71e-07/1.158, allocations: 0 / 1.14 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003298/1.161, allocations: 0.8405 MB / 1.141 GB, free: 14.2 MB / 0.9044 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.001837/1.163, allocations: 0.6321 MB / 1.142 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.007469/1.171, allocations: 2.739 MB / 1.145 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.171, allocations: 0 / 1.145 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00251/1.173, allocations: 1.037 MB / 1.146 GB, free: 9.949 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/1.175, allocations: 312.4 kB / 1.146 GB, free: 9.652 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007364/1.183, allocations: 3.845 MB / 1.15 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/1.184, allocations: 1.364 MB / 1.151 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.003494/1.187, allocations: 0.5496 MB / 1.151 GB, free: 3.816 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007388/1.188, allocations: 167.3 kB / 1.152 GB, free: 3.652 MB / 0.9044 GB Notification: Performance of SimCode: time 1.112e-06/1.188, allocations: 4 kB / 1.152 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of Templates: time 0.04001/1.228, allocations: 21.05 MB / 1.172 GB, free: 14.78 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches