Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.981/1.981, allocations: 390.4 MB / 397.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 188.8 kB / 490.8 MB, free: 11.24 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.384/1.384, allocations: 221.4 MB / 0.7863 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009997/0.0009997, allocations: 93.05 kB / 0.9264 GB, free: 4.602 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.325/0.3261, allocations: 149.1 MB / 1.072 GB, free: 15.55 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8887/1.215, allocations: 143 MB / 1.212 GB, free: 155.7 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.342/5.557, allocations: 2.12 GB / 3.331 GB, free: 390.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/5.557, allocations: 84.75 kB / 3.331 GB, free: 390.4 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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 5.73/11.29, allocations: 1.875 GB / 5.206 GB, free: 212.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/11.29, allocations: 13.53 kB / 5.206 GB, free: 212.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.012/11.3, allocations: 1.665 MB / 5.208 GB, free: 212.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03681/11.34, allocations: 16.94 MB / 5.224 GB, free: 211.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/11.34, allocations: 135 kB / 5.225 GB, free: 211.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/11.34, allocations: 224.2 kB / 5.225 GB, free: 211.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01032/11.35, allocations: 4.593 MB / 5.229 GB, free: 211.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009066/11.36, allocations: 4.753 MB / 5.234 GB, free: 211 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.822e-05/11.36, allocations: 7.656 kB / 5.234 GB, free: 211 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005187/11.36, allocations: 15.45 kB / 5.234 GB, free: 211 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/11.36, allocations: 156.9 kB / 5.234 GB, free: 211 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03599/11.39, allocations: 19.33 MB / 5.253 GB, free: 205 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004519/11.4, allocations: 3.185 MB / 5.256 GB, free: 205 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002126/11.4, allocations: 1.671 MB / 5.258 GB, free: 204.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002503/11.4, allocations: 3.35 MB / 5.261 GB, free: 201.3 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002719/11.41, allocations: 1.894 MB / 5.263 GB, free: 201.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=285): time 4.378e-06/11.41, allocations: 0 / 5.263 GB, free: 201.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=285): time 0.01652/11.42, allocations: 4.61 MB / 5.267 GB, free: 200.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/11.42, allocations: 291 kB / 5.268 GB, free: 200.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/11.43, allocations: 2.969 MB / 5.27 GB, free: 200.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0007452/11.43, allocations: 29.42 kB / 5.27 GB, free: 200.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.00166/11.43, allocations: 1.39 MB / 5.272 GB, free: 199.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.00195/11.43, allocations: 0.9309 MB / 5.273 GB, free: 198.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/11.43, allocations: 0 / 5.273 GB, free: 198.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001507/11.43, allocations: 424 kB / 5.273 GB, free: 198.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/11.43, allocations: 1.394 MB / 5.274 GB, free: 198.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002344/11.44, allocations: 2.016 MB / 5.276 GB, free: 197.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/11.45, allocations: 3.104 MB / 5.279 GB, free: 197.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-05/11.45, allocations: 3.344 kB / 5.28 GB, free: 197.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.02215/11.47, allocations: 5.393 MB / 5.285 GB, free: 197.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001096/11.48, allocations: 6.447 MB / 5.291 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/11.48, allocations: 15.12 kB / 5.291 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006505/11.48, allocations: 109.2 kB / 5.291 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004536/11.48, allocations: 0.8376 MB / 5.292 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/11.48, allocations: 2.102 MB / 5.294 GB, free: 188.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005305/11.49, allocations: 440.2 kB / 5.294 GB, free: 188.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006442/11.49, allocations: 205.2 kB / 5.295 GB, free: 188.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.747e-06/11.49, allocations: 3.438 kB / 5.295 GB, free: 188.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02043/11.51, allocations: 4.909 MB / 5.299 GB, free: 188.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.189e-05/11.51, allocations: 15.19 kB / 5.299 GB, free: 188.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006123/11.51, allocations: 113.5 kB / 5.3 GB, free: 188.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/11.51, allocations: 0.8235 MB / 5.3 GB, free: 188.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/11.52, allocations: 1.499 MB / 5.302 GB, free: 187.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005243/11.52, allocations: 402 kB / 5.302 GB, free: 187.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007232/11.52, allocations: 203.2 kB / 5.302 GB, free: 187.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (379): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0009113/11.52, allocations: 183 kB / 5.303 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002095/11.53, allocations: 432.1 kB / 5.303 GB, free: 186.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01882/11.54, allocations: 6.179 MB / 5.309 GB, free: 186.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.163e-05/11.54, allocations: 41.42 kB / 5.309 GB, free: 186.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/11.54, allocations: 0 / 5.309 GB, free: 186.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01368/11.56, allocations: 4.65 MB / 5.314 GB, free: 186 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/11.58, allocations: 10.02 MB / 5.323 GB, free: 182.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/11.58, allocations: 1.688 kB / 5.323 GB, free: 182.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003554/11.59, allocations: 0.6253 MB / 5.324 GB, free: 182.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/11.59, allocations: 494.4 kB / 5.325 GB, free: 182.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/11.59, allocations: 71.27 kB / 5.325 GB, free: 182.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005413/11.59, allocations: 7.683 MB / 5.332 GB, free: 175.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/11.59, allocations: 0 / 5.332 GB, free: 175.3 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01885/11.61, allocations: 7.449 MB / 5.339 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02351/11.64, allocations: 10.27 MB / 5.349 GB, free: 168.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003197/11.64, allocations: 1.129 MB / 5.35 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/11.64, allocations: 16.44 kB / 5.35 GB, free: 167.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005499/11.65, allocations: 275.4 kB / 5.351 GB, free: 167.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005217/11.65, allocations: 161.5 kB / 5.351 GB, free: 167.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000545/11.65, allocations: 138.5 kB / 5.351 GB, free: 167.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.005113/11.65, allocations: 2.287 MB / 5.353 GB, free: 166.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01585/11.67, allocations: 3.172 MB / 5.356 GB, free: 165.8 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T) * 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 (276): * Single equations (assignments): 259 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004528/11.67, allocations: 1.873 MB / 5.358 GB, free: 165.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.009746/11.68, allocations: 5.868 MB / 5.364 GB, free: 163.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/11.68, allocations: 3.75 kB / 5.364 GB, free: 163.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003676/11.69, allocations: 2.027 MB / 5.366 GB, free: 162.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009809/11.7, allocations: 1.629 MB / 5.368 GB, free: 162.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04784/11.74, allocations: 22.18 MB / 5.389 GB, free: 146.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004982/11.75, allocations: 3.799 MB / 5.393 GB, free: 143.5 MB / 1.167 GB Notification: Performance of SimCode: time 1.192e-06/11.75, allocations: 0 / 5.393 GB, free: 143.5 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat does not exist to compare? outputFormat=mat