Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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 7.0.3-maint.7.0.x/package.mo): time 1.235/1.235, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 177.2 kB / 316 MB, free: 3.598 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 0.5667 GB, free: 15.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008187/0.0008185, allocations: 79.41 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3265/0.3274, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.4795, allocations: 106.3 MB / 0.8847 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4487/0.9282, allocations: 132.4 MB / 1.014 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.9285, allocations: 70.39 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.007035/0.9355, allocations: 2.365 MB / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.9356, allocations: 8 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.9356, allocations: 15.81 kB / 1.016 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.9358, allocations: 178.8 kB / 1.017 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.9358, allocations: 4 kB / 1.017 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.9358, allocations: 11.98 kB / 1.017 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001593/0.936, allocations: 56.31 kB / 1.017 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.9362, allocations: 124.1 kB / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.9362, allocations: 0 / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.9362, allocations: 0 / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.9363, allocations: 0 / 1.017 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007694/0.937, allocations: 0.5731 MB / 1.017 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00017/0.9372, allocations: 118.9 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.383e-05/0.9373, allocations: 53.94 kB / 1.017 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.9373, allocations: 4 kB / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.9375, allocations: 121.5 kB / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.9375, allocations: 0 / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002484/0.9378, allocations: 109.8 kB / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.9378, allocations: 121.9 kB / 1.018 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.9379, allocations: 134.2 kB / 1.018 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.938, allocations: 29.7 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.938, allocations: 102.9 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.9381, allocations: 42.95 kB / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.9381, allocations: 0 / 1.018 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.86e-05/0.9382, allocations: 330 kB / 1.018 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.9383, allocations: 45.19 kB / 1.018 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.9384, allocations: 94.94 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.908e-05/0.9385, allocations: 39.98 kB / 1.019 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.9385, allocations: 4 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000243/0.9387, allocations: 144.7 kB / 1.019 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.9388, allocations: 10.5 kB / 1.019 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.9388, allocations: 0.7031 kB / 1.019 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.9388, allocations: 4 kB / 1.019 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.9391, allocations: 59.33 kB / 1.019 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.9391, allocations: 7.906 kB / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.9394, allocations: 63.94 kB / 1.019 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.9394, allocations: 4 kB / 1.019 GB, free: 1.488 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.133e-05/0.9395, allocations: 126.2 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.9395, allocations: 19.8 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.9397, allocations: 63.47 kB / 1.019 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.9397, allocations: 7.984 kB / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.9397, allocations: 0 / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.9397, allocations: 192 / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.9399, allocations: 206.3 kB / 1.019 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.9399, allocations: 3.938 kB / 1.019 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.9401, allocations: 43.91 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.9401, allocations: 4 kB / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.9401, allocations: 7.984 kB / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.9401, allocations: 0 / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.9402, allocations: 4 kB / 1.019 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002168/0.9404, allocations: 169.2 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003183/0.9407, allocations: 0.5491 MB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.9408, allocations: 88.92 kB / 1.02 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.9408, allocations: 8.172 kB / 1.02 GB, free: 148 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.9411, allocations: 63.58 kB / 1.02 GB, free: 88 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.533e-05/0.9412, allocations: 35.86 kB / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.9412, allocations: 14.92 kB / 1.02 GB, free: 44 kB / 0.6355 GB Notification: Performance of sort global known variables: time 9.702e-05/0.9413, allocations: 116.1 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007644/0.9421, allocations: 27.91 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001891/0.9423, allocations: 122.3 kB / 1.02 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002331/0.9425, allocations: 115 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.9425, allocations: 0 / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.9427, allocations: 64.75 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.9429, allocations: 18.86 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000512/0.9434, allocations: 184.2 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003542/0.9438, allocations: 0.7427 MB / 1.022 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.9438, allocations: 0 / 1.022 GB, free: 14.7 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)