Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.DC.Sources.Examples.PVSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.306/2.306, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001534/0.001535, allocations: 180.8 kB / 492.3 MB, free: 0.6016 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.706/1.706, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009644/0.0009643, allocations: 90.3 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.774e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3086, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.637/4.945, allocations: 1.765 GB / 2.977 GB, free: 75.55 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/4.946, allocations: 88.64 kB / 2.977 GB, free: 75.5 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.1626/5.108, allocations: 74.78 MB / 3.05 GB, free: 4.059 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.454e-06/5.108, allocations: 3.984 kB / 3.05 GB, free: 4.055 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001076/5.109, allocations: 40 kB / 3.05 GB, free: 4.016 MB / 1.151 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.002975/5.111, allocations: 1.592 MB / 3.052 GB, free: 2.367 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/5.112, allocations: 8.031 kB / 3.052 GB, free: 2.359 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005434/5.117, allocations: 0.837 MB / 3.053 GB, free: 1.52 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/5.119, allocations: 0.9 MB / 3.054 GB, free: 0.5781 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.253e-05/5.119, allocations: 111 kB / 3.054 GB, free: 480 kB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/5.119, allocations: 144 kB / 3.054 GB, free: 336 kB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6663/5.786, allocations: 1.743 MB / 3.056 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.942e-05/5.786, allocations: 4.828 kB / 3.056 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/5.786, allocations: 64.98 kB / 3.056 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/5.786, allocations: 67.03 kB / 3.056 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003976/5.79, allocations: 1.977 MB / 3.058 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/5.803, allocations: 6.237 MB / 3.064 GB, free: 385.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/5.806, allocations: 1.295 MB / 3.065 GB, free: 385.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/5.808, allocations: 0.6241 MB / 3.066 GB, free: 385.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006617/5.808, allocations: 484.3 kB / 3.066 GB, free: 385.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001411/5.81, allocations: 0.7935 MB / 3.067 GB, free: 385.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 3.497e-06/5.81, allocations: 1.062 kB / 3.067 GB, free: 385.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.0028/5.813, allocations: 1.267 MB / 3.068 GB, free: 385 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/5.813, allocations: 357 kB / 3.068 GB, free: 384.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/5.814, allocations: 0.783 MB / 3.069 GB, free: 384.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/5.814, allocations: 52.27 kB / 3.069 GB, free: 384.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005478/5.815, allocations: 0.5916 MB / 3.07 GB, free: 384.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/5.815, allocations: 430.2 kB / 3.07 GB, free: 384 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.048e-05/5.815, allocations: 22 kB / 3.07 GB, free: 384 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.172e-05/5.815, allocations: 354.2 kB / 3.071 GB, free: 383.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000824/5.816, allocations: 467.9 kB / 3.071 GB, free: 383.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/5.817, allocations: 0.6622 MB / 3.072 GB, free: 383.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009614/5.818, allocations: 0.5343 MB / 3.072 GB, free: 383.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/5.818, allocations: 0 / 3.072 GB, free: 383.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002749/5.821, allocations: 1.354 MB / 3.073 GB, free: 383.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002815/5.821, allocations: 1.054 MB / 3.074 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/5.821, allocations: 6.906 kB / 3.074 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/5.821, allocations: 30.27 kB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/5.823, allocations: 332.5 kB / 3.075 GB, free: 382.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002909/5.824, allocations: 0.5403 MB / 3.075 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/5.825, allocations: 199.6 kB / 3.076 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/5.825, allocations: 58.22 kB / 3.076 GB, free: 381.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/5.825, allocations: 10.86 kB / 3.076 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00227/5.828, allocations: 1.208 MB / 3.077 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/5.828, allocations: 3.438 kB / 3.077 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/5.828, allocations: 11.84 kB / 3.077 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/5.83, allocations: 343.9 kB / 3.077 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/5.83, allocations: 8.719 kB / 3.077 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/5.831, allocations: 189.8 kB / 3.077 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/5.831, allocations: 54.97 kB / 3.077 GB, free: 381.6 MB / 1.151 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 () * 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.0004678/5.832, allocations: 177.8 kB / 3.078 GB, free: 381.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003559/5.832, allocations: 126.1 kB / 3.078 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/5.836, allocations: 1.666 MB / 3.079 GB, free: 381.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/5.836, allocations: 14.62 kB / 3.079 GB, free: 381.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/5.836, allocations: 1.25 kB / 3.079 GB, free: 381.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.483e-05/5.836, allocations: 6.891 kB / 3.079 GB, free: 381.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00596/5.842, allocations: 3.517 MB / 3.083 GB, free: 380.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/5.842, allocations: 0 / 3.083 GB, free: 380.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/5.844, allocations: 317.3 kB / 3.083 GB, free: 380.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001401/5.844, allocations: 28.86 kB / 3.083 GB, free: 380.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001203/5.844, allocations: 46.08 kB / 3.083 GB, free: 380.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007917/5.845, allocations: 1.276 MB / 3.084 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/5.845, allocations: 4.781 kB / 3.084 GB, free: 379.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/5.848, allocations: 1.524 MB / 3.086 GB, free: 378.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009648/5.849, allocations: 427 kB / 3.086 GB, free: 378.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/5.849, allocations: 27.89 kB / 3.086 GB, free: 378.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/5.85, allocations: 145.5 kB / 3.086 GB, free: 378.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/5.851, allocations: 93.83 kB / 3.087 GB, free: 378.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/5.851, allocations: 51.2 kB / 3.087 GB, free: 378.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001167/5.852, allocations: 0.6437 MB / 3.087 GB, free: 377.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/5.852, allocations: 1.031 kB / 3.087 GB, free: 377.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002642/5.855, allocations: 0.7675 MB / 3.088 GB, free: 377.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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.00157/5.856, allocations: 0.6184 MB / 3.089 GB, free: 377.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003924/5.86, allocations: 1.948 MB / 3.09 GB, free: 376.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/5.86, allocations: 4.5 kB / 3.09 GB, free: 376.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001329/5.862, allocations: 0.7837 MB / 3.091 GB, free: 376.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/5.863, allocations: 306.6 kB / 3.092 GB, free: 376.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/5.867, allocations: 2.052 MB / 3.094 GB, free: 375.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009444/5.868, allocations: 1.27 MB / 3.095 GB, free: 374.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003155/5.871, allocations: 0.6257 MB / 3.095 GB, free: 374.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005174/5.872, allocations: 137.9 kB / 3.096 GB, free: 374.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.092e-06/5.872, allocations: 0 / 3.096 GB, free: 374.5 MB / 1.151 GB Notification: Performance of Templates: time 0.03417/5.906, allocations: 21.13 MB / 3.116 GB, free: 373.3 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_PVSimple.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches