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.273/2.273, allocations: 390.5 MB / 398 MB, free: 10.93 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.001902/0.001902, allocations: 180.6 kB / 491.2 MB, free: 1.57 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.583/1.583, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009887/0.0009887, allocations: 95.7 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.875e-05/1.876e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3141, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.955/5.269, allocations: 1.765 GB / 2.977 GB, free: 75.08 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/5.269, allocations: 100.2 kB / 2.977 GB, free: 75.03 MB / 1.151 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.1607/5.43, allocations: 74.34 MB / 3.05 GB, free: 4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.023e-06/5.43, allocations: 4 kB / 3.05 GB, free: 3.996 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.284e-05/5.43, allocations: 39.94 kB / 3.05 GB, free: 3.957 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.002532/5.433, allocations: 1.591 MB / 3.051 GB, free: 2.309 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/5.433, allocations: 16.03 kB / 3.051 GB, free: 2.293 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005001/5.438, allocations: 0.8405 MB / 3.052 GB, free: 1.449 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/5.439, allocations: 0.8884 MB / 3.053 GB, free: 0.5156 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/5.439, allocations: 51.94 kB / 3.053 GB, free: 476 kB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/5.439, allocations: 87.94 kB / 3.053 GB, free: 388 kB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6937/6.133, allocations: 1.882 MB / 3.055 GB, free: 387.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00355/6.137, allocations: 1.54 MB / 3.057 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.978e-05/6.137, allocations: 1.984 kB / 3.057 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/6.137, allocations: 6.016 kB / 3.057 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/6.137, allocations: 69.12 kB / 3.057 GB, free: 387.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/6.149, allocations: 5.952 MB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/6.151, allocations: 1.228 MB / 3.064 GB, free: 385.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/6.152, allocations: 0.5794 MB / 3.064 GB, free: 385.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006422/6.153, allocations: 492.7 kB / 3.065 GB, free: 385.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/6.154, allocations: 0.7516 MB / 3.066 GB, free: 385.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 3.677e-06/6.154, allocations: 0 / 3.066 GB, free: 385.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.005387/6.16, allocations: 1.737 MB / 3.067 GB, free: 385.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/6.16, allocations: 355.7 kB / 3.068 GB, free: 384.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/6.161, allocations: 0.6558 MB / 3.068 GB, free: 384.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000118/6.161, allocations: 28.59 kB / 3.068 GB, free: 384.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000519/6.162, allocations: 0.6088 MB / 3.069 GB, free: 384.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/6.162, allocations: 410.1 kB / 3.069 GB, free: 384.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-05/6.162, allocations: 3.375 kB / 3.069 GB, free: 384.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/6.162, allocations: 351.7 kB / 3.07 GB, free: 383.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007186/6.163, allocations: 446.2 kB / 3.07 GB, free: 383.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008942/6.164, allocations: 0.6319 MB / 3.071 GB, free: 383.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003812/6.168, allocations: 1.058 MB / 3.072 GB, free: 383.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/6.168, allocations: 1.5 kB / 3.072 GB, free: 383.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005768/6.173, allocations: 1.802 MB / 3.073 GB, free: 383.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/6.174, allocations: 1.055 MB / 3.074 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/6.174, allocations: 10.16 kB / 3.074 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/6.174, allocations: 29.66 kB / 3.074 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/6.176, allocations: 333.1 kB / 3.075 GB, free: 382.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003937/6.176, allocations: 0.5431 MB / 3.075 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/6.178, allocations: 159.7 kB / 3.075 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/6.178, allocations: 58.62 kB / 3.075 GB, free: 381.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/6.178, allocations: 6.906 kB / 3.076 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004999/6.183, allocations: 1.652 MB / 3.077 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/6.183, allocations: 3.375 kB / 3.077 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/6.183, allocations: 8.312 kB / 3.077 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/6.185, allocations: 345.5 kB / 3.077 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/6.185, allocations: 12 kB / 3.077 GB, free: 381.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/6.187, allocations: 154.6 kB / 3.078 GB, free: 381.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/6.187, allocations: 58.72 kB / 3.078 GB, free: 381.7 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.0003916/6.187, allocations: 128 kB / 3.078 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/6.187, allocations: 114 kB / 3.078 GB, free: 381.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006619/6.194, allocations: 2.111 MB / 3.08 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/6.194, allocations: 18.77 kB / 3.08 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/6.194, allocations: 1.438 kB / 3.08 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.081e-05/6.194, allocations: 10.97 kB / 3.08 GB, free: 381.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009385/6.204, allocations: 3.774 MB / 3.084 GB, free: 380.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/6.204, allocations: 1.922 kB / 3.084 GB, free: 380.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0018/6.205, allocations: 310.4 kB / 3.084 GB, free: 380.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/6.206, allocations: 34.98 kB / 3.084 GB, free: 380.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/6.206, allocations: 26.97 kB / 3.084 GB, free: 380.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007501/6.206, allocations: 1.231 MB / 3.085 GB, free: 379.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/6.206, allocations: 5.062 kB / 3.085 GB, free: 379.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005657/6.212, allocations: 1.982 MB / 3.087 GB, free: 379 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007993/6.213, allocations: 405.5 kB / 3.088 GB, free: 378.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/6.213, allocations: 3.656 kB / 3.088 GB, free: 378.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/6.215, allocations: 122.2 kB / 3.088 GB, free: 378.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/6.215, allocations: 99.72 kB / 3.088 GB, free: 378.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/6.215, allocations: 54.98 kB / 3.088 GB, free: 378.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0008687/6.216, allocations: 0.5267 MB / 3.088 GB, free: 378.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/6.216, allocations: 0 / 3.088 GB, free: 378.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002511/6.218, allocations: 0.7218 MB / 3.089 GB, free: 378.3 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.001436/6.22, allocations: 0.5768 MB / 3.09 GB, free: 378.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003619/6.224, allocations: 1.844 MB / 3.091 GB, free: 377.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/6.224, allocations: 5.031 kB / 3.091 GB, free: 377.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001317/6.225, allocations: 0.7483 MB / 3.092 GB, free: 377.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/6.227, allocations: 265.2 kB / 3.092 GB, free: 377 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/6.231, allocations: 1.969 MB / 3.094 GB, free: 376.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/6.232, allocations: 1.276 MB / 3.096 GB, free: 375.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003311/6.236, allocations: 0.6083 MB / 3.096 GB, free: 375.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005274/6.236, allocations: 131.4 kB / 3.096 GB, free: 375.2 MB / 1.151 GB Notification: Performance of SimCode: time 9.82e-07/6.236, allocations: 0 / 3.096 GB, free: 375.2 MB / 1.151 GB Notification: Performance of Templates: time 0.03364/6.27, allocations: 19.69 MB / 3.116 GB, free: 374 MB / 1.151 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