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: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.816/1.816, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009258/0.0009258, allocations: 181.3 kB / 490.8 MB, free: 1.898 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.148/1.148, allocations: 221.3 MB / 0.7863 GB, free: 13.63 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.0008554/0.0008554, allocations: 85.92 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4167/0.4176, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.6012, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.523/3.125, allocations: 1.765 GB / 2.977 GB, free: 82.09 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/3.125, allocations: 93.62 kB / 2.977 GB, free: 82.05 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: 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.1554/3.28, allocations: 77.14 MB / 3.052 GB, free: 8.57 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/3.28, allocations: 11.94 kB / 3.052 GB, free: 8.559 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005373/3.286, allocations: 0.9225 MB / 3.053 GB, free: 7.633 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/3.287, allocations: 0.9077 MB / 3.054 GB, free: 6.68 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/3.287, allocations: 48 kB / 3.054 GB, free: 6.633 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/3.287, allocations: 84 kB / 3.054 GB, free: 6.551 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002707/3.29, allocations: 1.888 MB / 3.056 GB, free: 4.66 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/3.292, allocations: 1.554 MB / 3.057 GB, free: 3.035 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/3.292, allocations: 3.938 kB / 3.057 GB, free: 3.031 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/3.293, allocations: 7.984 kB / 3.057 GB, free: 3.023 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.917e-05/3.293, allocations: 66.89 kB / 3.057 GB, free: 2.957 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2826/3.575, allocations: 6.285 MB / 3.063 GB, free: 0.511 GB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/3.577, allocations: 1.186 MB / 3.065 GB, free: 0.511 GB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007515/3.577, allocations: 0.5869 MB / 3.065 GB, free: 0.511 GB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005292/3.578, allocations: 485.3 kB / 3.066 GB, free: 0.5105 GB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008691/3.579, allocations: 0.7535 MB / 3.066 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of pre-optimization done (n=129): time 2.916e-06/3.579, allocations: 0 / 3.066 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of matching and sorting (n=129): time 0.002095/3.581, allocations: 1.255 MB / 3.068 GB, free: 0.5104 GB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/3.581, allocations: 355.3 kB / 3.068 GB, free: 0.51 GB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/3.582, allocations: 0.6633 MB / 3.069 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.159e-05/3.582, allocations: 29.58 kB / 3.069 GB, free: 0.5098 GB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000195/3.582, allocations: 0.4903 MB / 3.069 GB, free: 0.5096 GB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/3.582, allocations: 411.2 kB / 3.069 GB, free: 0.5094 GB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/3.582, allocations: 0 / 3.069 GB, free: 0.5094 GB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.767e-05/3.582, allocations: 351.2 kB / 3.07 GB, free: 0.5091 GB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006138/3.583, allocations: 448.8 kB / 3.07 GB, free: 0.5091 GB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006926/3.584, allocations: 0.6382 MB / 3.071 GB, free: 0.5089 GB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009565/3.585, allocations: 0.582 MB / 3.071 GB, free: 0.5089 GB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/3.585, allocations: 0 / 3.071 GB, free: 0.5089 GB / 1.151 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002119/3.587, allocations: 1.337 MB / 3.073 GB, free: 0.5088 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/3.587, allocations: 1.059 MB / 3.074 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.495e-06/3.587, allocations: 3.906 kB / 3.074 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001373/3.587, allocations: 31.03 kB / 3.074 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/3.589, allocations: 344.4 kB / 3.074 GB, free: 0.5077 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002344/3.589, allocations: 0.541 MB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/3.59, allocations: 177 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/3.591, allocations: 59.12 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.2e-06/3.591, allocations: 5.109 kB / 3.075 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001933/3.592, allocations: 1.19 MB / 3.076 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/3.593, allocations: 3.703 kB / 3.076 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.395e-06/3.593, allocations: 12.47 kB / 3.076 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/3.594, allocations: 343 kB / 3.076 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/3.594, allocations: 12.81 kB / 3.076 GB, free: 0.5072 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/3.596, allocations: 154.7 kB / 3.077 GB, free: 0.5071 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/3.596, allocations: 58.11 kB / 3.077 GB, free: 0.5071 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.0002267/3.596, allocations: 128.9 kB / 3.077 GB, free: 0.507 GB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/3.596, allocations: 115.1 kB / 3.077 GB, free: 0.507 GB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/3.599, allocations: 1.678 MB / 3.078 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/3.599, allocations: 17.55 kB / 3.078 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/3.599, allocations: 3.875 kB / 3.078 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/3.599, allocations: 7.359 kB / 3.078 GB, free: 0.5069 GB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004088/3.603, allocations: 3.334 MB / 3.082 GB, free: 0.5063 GB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/3.603, allocations: 0 / 3.082 GB, free: 0.5063 GB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/3.605, allocations: 326.8 kB / 3.082 GB, free: 0.5063 GB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.994e-05/3.605, allocations: 23.91 kB / 3.082 GB, free: 0.5063 GB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/3.605, allocations: 33.14 kB / 3.082 GB, free: 0.5063 GB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006654/3.606, allocations: 1.221 MB / 3.083 GB, free: 0.5051 GB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/3.606, allocations: 3.938 kB / 3.083 GB, free: 0.5051 GB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002099/3.608, allocations: 1.512 MB / 3.085 GB, free: 0.5048 GB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002124/3.61, allocations: 1.915 MB / 3.087 GB, free: 0.5041 GB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004978/3.611, allocations: 414.6 kB / 3.087 GB, free: 0.504 GB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/3.611, allocations: 6.188 kB / 3.087 GB, free: 0.504 GB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/3.612, allocations: 127.6 kB / 3.087 GB, free: 0.504 GB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/3.612, allocations: 84.58 kB / 3.087 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/3.613, allocations: 54.47 kB / 3.087 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005264/3.613, allocations: 0.5309 MB / 3.088 GB, free: 0.5039 GB / 1.151 GB Notification: Performance of remove unused functions: time 0.002718/3.616, allocations: 0.7751 MB / 3.089 GB, free: 0.5037 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.0009578/3.617, allocations: 0.5414 MB / 3.089 GB, free: 0.5036 GB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002404/3.619, allocations: 1.88 MB / 3.091 GB, free: 0.5036 GB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/3.619, allocations: 0 / 3.091 GB, free: 0.5036 GB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008655/3.62, allocations: 0.7477 MB / 3.092 GB, free: 0.5035 GB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/3.621, allocations: 249.5 kB / 3.092 GB, free: 0.5035 GB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/3.624, allocations: 2.043 MB / 3.094 GB, free: 0.503 GB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/3.626, allocations: 1.456 MB / 3.095 GB, free: 0.5023 GB / 1.151 GB Notification: Performance of SimCode: time 2.7e-07/3.626, allocations: 3.938 kB / 3.095 GB, free: 0.5023 GB / 1.151 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimple_res.mat does not exist to compare? outputFormat=mat