Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",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.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 15.81 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001038, allocations: 184.2 kB / 316 MB, free: 7.207 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.319/1.319, allocations: 205.1 MB / 0.5667 GB, free: 23.57 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.0007842/0.0007843, allocations: 90.75 kB / 0.671 GB, free: 0.8633 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.1945/0.1953, allocations: 112.5 MB / 0.7808 GB, free: 264 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.5763, allocations: 106.3 MB / 0.8847 GB, free: 76.24 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.7143, allocations: 131.1 MB / 1.013 GB, free: 8.973 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.7147, allocations: 71.95 kB / 1.013 GB, free: 8.902 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.004661/0.7193, allocations: 1.737 MB / 1.014 GB, free: 7.117 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.7194, allocations: 8 kB / 1.014 GB, free: 7.109 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/0.7194, allocations: 15.81 kB / 1.014 GB, free: 7.094 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.7196, allocations: 179 kB / 1.015 GB, free: 6.879 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.7196, allocations: 11.98 kB / 1.015 GB, free: 6.867 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.7196, allocations: 4 kB / 1.015 GB, free: 6.863 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001233/0.7198, allocations: 48.38 kB / 1.015 GB, free: 6.816 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.7199, allocations: 81.52 kB / 1.015 GB, free: 6.734 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.7199, allocations: 0 / 1.015 GB, free: 6.734 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.7199, allocations: 7.922 kB / 1.015 GB, free: 6.727 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.72, allocations: 11.98 kB / 1.015 GB, free: 6.715 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004279/0.7204, allocations: 333.7 kB / 1.015 GB, free: 6.352 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.7205, allocations: 82.53 kB / 1.015 GB, free: 6.262 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.313e-05/0.7206, allocations: 28.86 kB / 1.015 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.7206, allocations: 0 / 1.015 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001031/0.7207, allocations: 88.78 kB / 1.015 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.7207, allocations: 4 kB / 1.015 GB, free: 6.129 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14): time 0.0001979/0.7209, allocations: 93.73 kB / 1.015 GB, free: 6.031 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.721, allocations: 63.41 kB / 1.015 GB, free: 5.957 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.068e-05/0.7211, allocations: 130.6 kB / 1.016 GB, free: 5.824 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.7211, allocations: 25.7 kB / 1.016 GB, free: 5.793 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.222e-05/0.7212, allocations: 96.03 kB / 1.016 GB, free: 5.695 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.7212, allocations: 23.62 kB / 1.016 GB, free: 5.672 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-06/0.7212, allocations: 4 kB / 1.016 GB, free: 5.668 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.7213, allocations: 322.8 kB / 1.016 GB, free: 5.344 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.495e-05/0.7214, allocations: 24 kB / 1.016 GB, free: 5.32 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.066e-05/0.7214, allocations: 55.42 kB / 1.016 GB, free: 5.254 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.66e-05/0.7215, allocations: 24.61 kB / 1.016 GB, free: 5.23 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.7215, allocations: 4 kB / 1.016 GB, free: 5.227 MB / 0.6667 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001556/0.7217, allocations: 116.2 kB / 1.016 GB, free: 5.109 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.7217, allocations: 4 kB / 1.016 GB, free: 5.105 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.7217, allocations: 8.031 kB / 1.016 GB, free: 5.098 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.7217, allocations: 4 kB / 1.016 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.67e-05/0.7218, allocations: 15.98 kB / 1.016 GB, free: 5.078 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.7218, allocations: 3.938 kB / 1.016 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.722, allocations: 31.83 kB / 1.016 GB, free: 5.043 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.722, allocations: 4 kB / 1.016 GB, free: 5.039 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 7.966e-05/0.7221, allocations: 119.5 kB / 1.016 GB, free: 4.918 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.836e-05/0.7221, allocations: 15.81 kB / 1.016 GB, free: 4.902 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.779e-05/0.7221, allocations: 8.562 kB / 1.016 GB, free: 4.895 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.7221, allocations: 4 kB / 1.016 GB, free: 4.891 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.7221, allocations: 0 / 1.016 GB, free: 4.891 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.7222, allocations: 0 / 1.016 GB, free: 4.891 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.7223, allocations: 182.2 kB / 1.017 GB, free: 4.676 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7223, allocations: 8 kB / 1.017 GB, free: 4.668 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.798e-05/0.7224, allocations: 15.89 kB / 1.017 GB, free: 4.652 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.7224, allocations: 4 kB / 1.017 GB, free: 4.648 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.7224, allocations: 0 / 1.017 GB, free: 4.648 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.7224, allocations: 0 / 1.017 GB, free: 4.648 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7224, allocations: 0 / 1.017 GB, free: 4.648 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001557/0.7226, allocations: 128.9 kB / 1.017 GB, free: 4.504 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002258/0.7228, allocations: 0.4936 MB / 1.017 GB, free: 3.988 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.7229, allocations: 92.86 kB / 1.017 GB, free: 3.879 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.7229, allocations: 3.984 kB / 1.017 GB, free: 3.875 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.723, allocations: 27.98 kB / 1.017 GB, free: 3.848 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.7231, allocations: 15.97 kB / 1.017 GB, free: 3.832 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/0.7231, allocations: 4 kB / 1.017 GB, free: 3.828 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.674e-05/0.7231, allocations: 102.2 kB / 1.017 GB, free: 3.73 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007439/0.7239, allocations: 27.91 kB / 1.018 GB, free: 3.703 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001167/0.724, allocations: 103.2 kB / 1.018 GB, free: 3.594 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000146/0.7242, allocations: 82.69 kB / 1.018 GB, free: 3.516 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.7242, allocations: 0 / 1.018 GB, free: 3.516 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 7.628e-05/0.7243, allocations: 39.98 kB / 1.018 GB, free: 3.477 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.7245, allocations: 19.98 kB / 1.018 GB, free: 3.457 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.7248, allocations: 159.5 kB / 1.018 GB, free: 3.277 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.7251, allocations: 0.727 MB / 1.019 GB, free: 2.523 MB / 0.6667 GB Notification: Performance of SimCode: time 2.11e-07/0.7251, allocations: 0 / 1.019 GB, free: 2.523 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)