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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.395/2.395, allocations: 393.5 MB / 408.4 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 183.9 kB / 0.4902 GB, free: 2.086 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 223.1 MB / 0.7992 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 109.6 kB / 0.9396 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 11.86 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.127/4.382, allocations: 1.766 GB / 2.995 GB, free: 184.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/4.382, allocations: 105.7 kB / 2.995 GB, free: 184.6 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1746/4.557, allocations: 75.22 MB / 3.068 GB, free: 119.7 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.497e-06/4.557, allocations: 0 / 3.068 GB, free: 119.7 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001631/4.557, allocations: 36 kB / 3.068 GB, free: 119.6 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 386 * Number of variables: 386 Notification: Performance of Generate backend data structure: time 0.004825/4.562, allocations: 1.749 MB / 3.07 GB, free: 118 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/4.562, allocations: 11.97 kB / 3.07 GB, free: 117.9 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005736/4.568, allocations: 0.8397 MB / 3.071 GB, free: 117.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002425/4.57, allocations: 0.8988 MB / 3.072 GB, free: 116.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/4.57, allocations: 117.9 kB / 3.072 GB, free: 116.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005558/4.571, allocations: 139.7 kB / 3.072 GB, free: 116.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005638/4.576, allocations: 1.98 MB / 3.074 GB, free: 114.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.514e-05/4.576, allocations: 3.938 kB / 3.074 GB, free: 114.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/4.577, allocations: 63.94 kB / 3.074 GB, free: 114.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-05/4.577, allocations: 74.47 kB / 3.074 GB, free: 114.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005927/4.583, allocations: 2.416 MB / 3.076 GB, free: 112.8 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01175/4.595, allocations: 6.239 MB / 3.083 GB, free: 107.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/4.599, allocations: 1.567 MB / 3.084 GB, free: 106.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006421/4.599, allocations: 486.2 kB / 3.085 GB, free: 106.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002088/4.601, allocations: 0.9451 MB / 3.085 GB, free: 105.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=129): time 7.274e-06/4.602, allocations: 0 / 3.085 GB, free: 105.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=129): time 0.005935/4.607, allocations: 2.253 MB / 3.088 GB, free: 103.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/4.608, allocations: 359.4 kB / 3.088 GB, free: 103.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/4.609, allocations: 0.7938 MB / 3.089 GB, free: 102.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001425/4.609, allocations: 57.69 kB / 3.089 GB, free: 102.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004776/4.609, allocations: 0.5857 MB / 3.089 GB, free: 101.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000314/4.61, allocations: 433.7 kB / 3.09 GB, free: 101.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.052e-05/4.61, allocations: 24 kB / 3.09 GB, free: 101.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.117e-05/4.61, allocations: 353.9 kB / 3.09 GB, free: 100.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/4.611, allocations: 0.5998 MB / 3.091 GB, free: 100.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/4.613, allocations: 0.8053 MB / 3.092 GB, free: 99.39 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/4.615, allocations: 0.6778 MB / 3.092 GB, free: 98.71 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/4.615, allocations: 0 / 3.092 GB, free: 98.71 MB / 1.167 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003782/4.618, allocations: 1.633 MB / 3.094 GB, free: 97.07 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/4.619, allocations: 1.064 MB / 3.095 GB, free: 95.92 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/4.619, allocations: 0 / 3.095 GB, free: 95.92 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/4.619, allocations: 32.84 kB / 3.095 GB, free: 95.89 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/4.621, allocations: 335.5 kB / 3.095 GB, free: 95.56 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002729/4.621, allocations: 0.5407 MB / 3.096 GB, free: 94.99 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/4.622, allocations: 194.8 kB / 3.096 GB, free: 94.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/4.623, allocations: 51.95 kB / 3.096 GB, free: 94.75 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/4.623, allocations: 4 kB / 3.096 GB, free: 94.75 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003483/4.626, allocations: 1.506 MB / 3.097 GB, free: 93.24 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/4.626, allocations: 7.953 kB / 3.097 GB, free: 93.23 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/4.626, allocations: 8 kB / 3.097 GB, free: 93.22 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/4.628, allocations: 339.6 kB / 3.098 GB, free: 92.89 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/4.628, allocations: 8 kB / 3.098 GB, free: 92.88 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/4.629, allocations: 198.7 kB / 3.098 GB, free: 92.69 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/4.629, allocations: 59.95 kB / 3.098 GB, free: 92.63 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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.0008604/4.63, allocations: 430.8 kB / 3.098 GB, free: 92.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/4.63, allocations: 118.5 kB / 3.099 GB, free: 92.08 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004481/4.635, allocations: 1.959 MB / 3.1 GB, free: 90.11 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/4.635, allocations: 16 kB / 3.101 GB, free: 90.1 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/4.635, allocations: 0 / 3.101 GB, free: 90.1 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/4.635, allocations: 7.984 kB / 3.101 GB, free: 90.09 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005912/4.641, allocations: 3.642 MB / 3.104 GB, free: 86.38 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/4.641, allocations: 7.938 kB / 3.104 GB, free: 86.37 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/4.643, allocations: 307.6 kB / 3.104 GB, free: 86.07 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001163/4.643, allocations: 28.84 kB / 3.104 GB, free: 86.04 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.86e-05/4.643, allocations: 39.97 kB / 3.104 GB, free: 86 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007293/4.644, allocations: 1.292 MB / 3.106 GB, free: 84.58 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/4.644, allocations: 0 / 3.106 GB, free: 84.58 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003763/4.647, allocations: 1.763 MB / 3.107 GB, free: 82.78 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006599/4.648, allocations: 422.9 kB / 3.108 GB, free: 82.35 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/4.648, allocations: 28 kB / 3.108 GB, free: 82.32 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/4.649, allocations: 135.9 kB / 3.108 GB, free: 82.19 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/4.65, allocations: 101.1 kB / 3.108 GB, free: 82.09 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/4.65, allocations: 47.97 kB / 3.108 GB, free: 82.04 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0007954/4.651, allocations: 0.657 MB / 3.109 GB, free: 81.37 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.4e-07/4.651, allocations: 0 / 3.109 GB, free: 81.37 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001879/4.652, allocations: 0.7747 MB / 3.11 GB, free: 80.59 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001463/4.654, allocations: 0.6611 MB / 3.11 GB, free: 80.11 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005521/4.659, allocations: 2.35 MB / 3.112 GB, free: 77.76 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/4.659, allocations: 0 / 3.112 GB, free: 77.76 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001875/4.661, allocations: 0.924 MB / 3.113 GB, free: 76.82 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/4.663, allocations: 290.9 kB / 3.114 GB, free: 76.54 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/4.668, allocations: 3.37 MB / 3.117 GB, free: 73.13 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005985/4.668, allocations: 1.269 MB / 3.118 GB, free: 71.83 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002314/4.671, allocations: 0.5288 MB / 3.119 GB, free: 71.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/4.671, allocations: 147.3 kB / 3.119 GB, free: 71.15 MB / 1.167 GB Notification: Performance of SimCode: time 2.134e-06/4.671, allocations: 3.938 kB / 3.119 GB, free: 71.15 MB / 1.167 GB Notification: Performance of Templates: time 0.02814/4.699, allocations: 19.62 MB / 3.138 GB, free: 51.66 MB / 1.167 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