Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.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.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Compressors_BaseClasses_Validation_TemperatureProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Compressors_BaseClasses_Validation_TemperatureProtection",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.97/1.97, allocations: 387.2 MB / 394.5 MB, free: 13.23 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.001183/0.001183, allocations: 180.8 kB / 487 MB, free: 0.6836 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 221.3 MB / 0.7819 GB, free: 6.773 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 102.3 kB / 0.9213 GB, free: 43.66 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3393/0.3405, allocations: 148.5 MB / 1.066 GB, free: 7.422 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8569/1.197, allocations: 142.3 MB / 1.205 GB, free: 72.71 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1908/1.388, allocations: 151.4 MB / 1.353 GB, free: 11.71 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004059/1.389, allocations: 91.91 kB / 1.353 GB, free: 11.62 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.01082/1.4, allocations: 3.509 MB / 1.357 GB, free: 8.102 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/1.4, allocations: 8 kB / 1.357 GB, free: 8.094 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.677e-05/1.4, allocations: 23.72 kB / 1.357 GB, free: 8.07 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/1.4, allocations: 243.4 kB / 1.357 GB, free: 7.789 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/1.4, allocations: 8 kB / 1.357 GB, free: 7.781 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/1.4, allocations: 12 kB / 1.357 GB, free: 7.77 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000249/1.4, allocations: 108 kB / 1.357 GB, free: 7.664 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/1.401, allocations: 181.7 kB / 1.357 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/1.401, allocations: 0 / 1.357 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/1.401, allocations: 3.906 kB / 1.357 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/1.401, allocations: 4.938 kB / 1.357 GB, free: 7.461 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009942/1.402, allocations: 0.5653 MB / 1.358 GB, free: 6.859 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/1.402, allocations: 118.7 kB / 1.358 GB, free: 6.734 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/1.402, allocations: 36.86 kB / 1.358 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.937e-05/1.402, allocations: 4 kB / 1.358 GB, free: 6.691 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/1.403, allocations: 30.56 kB / 1.358 GB, free: 6.652 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/1.403, allocations: 0 / 1.358 GB, free: 6.652 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.0004203/1.403, allocations: 117.4 kB / 1.358 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/1.403, allocations: 128.5 kB / 1.358 GB, free: 6.379 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/1.403, allocations: 158.4 kB / 1.358 GB, free: 6.219 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/1.403, allocations: 33.7 kB / 1.358 GB, free: 6.18 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/1.403, allocations: 136.1 kB / 1.359 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/1.404, allocations: 23.7 kB / 1.359 GB, free: 6.02 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/1.404, allocations: 0 / 1.359 GB, free: 6.02 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001597/1.404, allocations: 330.7 kB / 1.359 GB, free: 5.688 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/1.404, allocations: 32 kB / 1.359 GB, free: 5.656 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001494/1.404, allocations: 67.42 kB / 1.359 GB, free: 5.578 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/1.404, allocations: 35.98 kB / 1.359 GB, free: 5.543 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/1.404, allocations: 0 / 1.359 GB, free: 5.543 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003428/1.405, allocations: 121.4 kB / 1.359 GB, free: 5.418 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.405, allocations: 4 kB / 1.359 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/1.405, allocations: 0 / 1.359 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/1.405, allocations: 0 / 1.359 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/1.405, allocations: 20.73 kB / 1.359 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/1.405, allocations: 2.891 kB / 1.359 GB, free: 5.395 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/1.405, allocations: 39.91 kB / 1.359 GB, free: 5.355 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/1.405, allocations: 12 kB / 1.359 GB, free: 5.344 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.temPro.hysHig.y,temPro.hysHig.y,$PRE.temPro.hysLow.y,temPro.hysLow.y,temPro.on.y,$PRE.temPro.hysdTConEva.y,temPro.hysdTConEva.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001219/1.405, allocations: 119.3 kB / 1.359 GB, free: 5.223 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.08e-05/1.405, allocations: 15.75 kB / 1.359 GB, free: 5.207 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003754/1.406, allocations: 119.7 kB / 1.359 GB, free: 5.086 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/1.406, allocations: 3.984 kB / 1.359 GB, free: 5.082 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/1.406, allocations: 0.875 kB / 1.359 GB, free: 5.082 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.406, allocations: 3.938 kB / 1.359 GB, free: 5.078 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003624/1.406, allocations: 234.1 kB / 1.36 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.406, allocations: 4 kB / 1.36 GB, free: 4.809 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/1.406, allocations: 23.17 kB / 1.36 GB, free: 4.789 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/1.406, allocations: 3.906 kB / 1.36 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/1.406, allocations: 0.75 kB / 1.36 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/1.406, allocations: 0 / 1.36 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.406, allocations: 0 / 1.36 GB, free: 4.785 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003389/1.407, allocations: 207.3 kB / 1.36 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005442/1.407, allocations: 0.5817 MB / 1.36 GB, free: 3.965 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.982e-05/1.407, allocations: 84.92 kB / 1.361 GB, free: 3.863 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/1.407, allocations: 5.25 kB / 1.361 GB, free: 3.859 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/1.408, allocations: 35.97 kB / 1.361 GB, free: 3.824 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/1.408, allocations: 23.95 kB / 1.361 GB, free: 3.801 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/1.408, allocations: 7.906 kB / 1.361 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001389/1.408, allocations: 133.2 kB / 1.361 GB, free: 3.664 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001487/1.41, allocations: 35.84 kB / 1.361 GB, free: 3.629 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (temPro.hysHig.y,temPro.hysLow.y,temPro.on.y,temPro.hysdTConEva.y) * Number of discrete states: 3 (temPro.hysdTConEva.y,temPro.hysLow.y,temPro.hysHig.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002098/1.41, allocations: 109.8 kB / 1.361 GB, free: 3.516 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002967/1.41, allocations: 87.92 kB / 1.361 GB, free: 3.43 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.41, allocations: 0 / 1.361 GB, free: 3.43 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/1.41, allocations: 43.94 kB / 1.361 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/1.411, allocations: 18.69 kB / 1.361 GB, free: 3.367 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000803/1.411, allocations: 200.2 kB / 1.361 GB, free: 3.145 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005225/1.412, allocations: 0.7585 MB / 1.362 GB, free: 2.363 MB / 0.8542 GB Notification: Performance of SimCode: time 3.61e-07/1.412, allocations: 3.938 kB / 1.362 GB, free: 2.359 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Compressors_BaseClasses_Validation_TemperatureProtection_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Compressors_BaseClasses_Validation_TemperatureProtection.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Compressors.BaseClasses.Validation.TemperatureProtection.pipe 2>&1)