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: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.864/1.864, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001043/0.001043, allocations: 185.2 kB / 487 MB, free: 5.355 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.14/1.14, allocations: 221.3 MB / 0.7819 GB, free: 1.352 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008598/0.0008598, allocations: 102.2 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4155/0.4164, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.6008, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.509/3.11, allocations: 1.764 GB / 2.969 GB, free: 93.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/3.11, allocations: 99.94 kB / 2.969 GB, free: 93.41 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: 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.155/3.265, allocations: 77.12 MB / 3.045 GB, free: 15.89 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/3.265, allocations: 13 kB / 3.045 GB, free: 15.88 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005116/3.27, allocations: 0.9225 MB / 3.046 GB, free: 14.95 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/3.271, allocations: 0.8999 MB / 3.047 GB, free: 14 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/3.271, allocations: 52 kB / 3.047 GB, free: 13.95 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/3.272, allocations: 84 kB / 3.047 GB, free: 13.87 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002482/3.274, allocations: 1.895 MB / 3.049 GB, free: 11.97 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/3.276, allocations: 1.554 MB / 3.05 GB, free: 10.35 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/3.276, allocations: 4 kB / 3.05 GB, free: 10.34 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/3.276, allocations: 0 / 3.05 GB, free: 10.34 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.001e-05/3.276, allocations: 70.89 kB / 3.05 GB, free: 10.27 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00811/3.284, allocations: 6.3 MB / 3.056 GB, free: 3.699 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/3.286, allocations: 1.183 MB / 3.057 GB, free: 2.504 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007634/3.287, allocations: 0.5845 MB / 3.058 GB, free: 1.922 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005375/3.287, allocations: 498.6 kB / 3.058 GB, free: 1.34 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008801/3.288, allocations: 0.7475 MB / 3.059 GB, free: 0.5625 MB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 2.474e-06/3.288, allocations: 0 / 3.059 GB, free: 0.5625 MB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.2783/3.566, allocations: 1.254 MB / 3.06 GB, free: 0.5142 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/3.567, allocations: 352.5 kB / 3.061 GB, free: 0.5138 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007342/3.567, allocations: 0.6613 MB / 3.061 GB, free: 0.5137 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.356e-05/3.567, allocations: 29.3 kB / 3.061 GB, free: 0.5136 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/3.568, allocations: 498.1 kB / 3.062 GB, free: 0.5135 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/3.568, allocations: 416.6 kB / 3.062 GB, free: 0.5133 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.426e-05/3.568, allocations: 0 / 3.062 GB, free: 0.5133 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.881e-05/3.568, allocations: 351.4 kB / 3.063 GB, free: 0.513 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006097/3.569, allocations: 448.9 kB / 3.063 GB, free: 0.513 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006873/3.569, allocations: 0.6331 MB / 3.064 GB, free: 0.5128 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009967/3.57, allocations: 0.5824 MB / 3.064 GB, free: 0.5128 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/3.57, allocations: 0 / 3.064 GB, free: 0.5128 GB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002076/3.573, allocations: 1.343 MB / 3.066 GB, free: 0.5126 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/3.573, allocations: 1.062 MB / 3.067 GB, free: 0.5116 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/3.573, allocations: 0 / 3.067 GB, free: 0.5116 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/3.573, allocations: 30.06 kB / 3.067 GB, free: 0.5116 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/3.575, allocations: 345.2 kB / 3.067 GB, free: 0.5116 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002344/3.575, allocations: 0.5432 MB / 3.068 GB, free: 0.5111 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/3.576, allocations: 173.4 kB / 3.068 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/3.576, allocations: 56.12 kB / 3.068 GB, free: 0.511 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.91e-06/3.576, allocations: 3.75 kB / 3.068 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001879/3.578, allocations: 1.198 MB / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/3.578, allocations: 0 / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/3.578, allocations: 7.812 kB / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/3.58, allocations: 347.9 kB / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/3.58, allocations: 11.62 kB / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/3.581, allocations: 160.7 kB / 3.069 GB, free: 0.511 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/3.581, allocations: 55.84 kB / 3.069 GB, free: 0.511 GB / 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.0002126/3.582, allocations: 130.4 kB / 3.07 GB, free: 0.5109 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/3.582, allocations: 115 kB / 3.07 GB, free: 0.5108 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/3.585, allocations: 1.677 MB / 3.071 GB, free: 0.5107 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/3.585, allocations: 19.44 kB / 3.071 GB, free: 0.5107 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/3.585, allocations: 3.906 kB / 3.071 GB, free: 0.5107 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/3.585, allocations: 14.22 kB / 3.071 GB, free: 0.5107 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004017/3.589, allocations: 3.316 MB / 3.075 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/3.589, allocations: 7.656 kB / 3.075 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/3.591, allocations: 321.2 kB / 3.075 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.742e-05/3.591, allocations: 30.8 kB / 3.075 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.641e-05/3.591, allocations: 23.66 kB / 3.075 GB, free: 0.5102 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005581/3.591, allocations: 1.23 MB / 3.076 GB, free: 0.509 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/3.591, allocations: 2.719 kB / 3.076 GB, free: 0.509 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002004/3.593, allocations: 1.515 MB / 3.078 GB, free: 0.5087 GB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002036/3.595, allocations: 1.919 MB / 3.08 GB, free: 0.508 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004681/3.596, allocations: 406.9 kB / 3.08 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/3.596, allocations: 14.36 kB / 3.08 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/3.597, allocations: 127.8 kB / 3.08 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/3.598, allocations: 74.72 kB / 3.08 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/3.598, allocations: 56.33 kB / 3.08 GB, free: 0.5078 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004841/3.598, allocations: 0.5307 MB / 3.081 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.002551/3.601, allocations: 0.7698 MB / 3.081 GB, free: 0.5076 GB / 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.0009215/3.602, allocations: 0.5433 MB / 3.082 GB, free: 0.5075 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002323/3.604, allocations: 1.872 MB / 3.084 GB, free: 0.5075 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/3.604, allocations: 0 / 3.084 GB, free: 0.5075 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008488/3.605, allocations: 0.7581 MB / 3.085 GB, free: 0.5074 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000993/3.606, allocations: 254 kB / 3.085 GB, free: 0.5074 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/3.609, allocations: 2.043 MB / 3.087 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/3.61, allocations: 1.451 MB / 3.088 GB, free: 0.5062 GB / 1.151 GB Notification: Performance of SimCode: time 3.11e-07/3.61, allocations: 3.391 kB / 3.088 GB, free: 0.5062 GB / 1.151 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat does not exist to compare? outputFormat=mat