Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002118/0.002118, allocations: 188 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.686/1.686, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002902/0.002902, allocations: 68.16 kB / 0.6718 GB, free: 26.17 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2409, allocations: 114.5 MB / 0.7837 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003711/0.2446, allocations: 1.937 MB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001848/0.2465, allocations: 1.024 MB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.2468, allocations: 7.938 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004651/0.2473, allocations: 103.5 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003634/0.2477, allocations: 99.58 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.2481, allocations: 122.9 kB / 0.7869 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.2485, allocations: 203.4 kB / 0.7871 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.2487, allocations: 45.66 kB / 0.7871 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.2489, allocations: 83.62 kB / 0.7872 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.249, allocations: 95.61 kB / 0.7873 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.2491, allocations: 19.98 kB / 0.7873 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.2493, allocations: 63.97 kB / 0.7873 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.367e-05/0.2494, allocations: 47.83 kB / 0.7874 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.2495, allocations: 87.41 kB / 0.7875 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.2498, allocations: 279.3 kB / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2499, allocations: 0 / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.924e-06/0.2499, allocations: 0 / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.2499, allocations: 0 / 0.7877 GB, free: 9.055 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007997/0.2507, allocations: 0.5372 MB / 0.7883 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2507, allocations: 8.031 kB / 0.7883 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.2508, allocations: 34.75 kB / 0.7883 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.2508, allocations: 24.66 kB / 0.7883 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.2512, allocations: 307.7 kB / 0.7886 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2513, allocations: 8.125 kB / 0.7886 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.2513, allocations: 4 kB / 0.7886 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.2515, allocations: 81.64 kB / 0.7887 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.2515, allocations: 4 kB / 0.7887 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.2515, allocations: 8 kB / 0.7887 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2515, allocations: 0 / 0.7887 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.966e-05/0.2516, allocations: 35.98 kB / 0.7888 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.2522, allocations: 420.5 kB / 0.7892 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.2525, allocations: 86.61 kB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.351e-05/0.2526, allocations: 28.84 kB / 0.7893 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.2526, allocations: 0 / 0.7893 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.2528, allocations: 83.31 kB / 0.7894 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2528, allocations: 0 / 0.7894 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.000323/0.2531, allocations: 133.3 kB / 0.7895 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.2532, allocations: 59.33 kB / 0.7895 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.2535, allocations: 366.9 kB / 0.7899 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.2535, allocations: 25.7 kB / 0.7899 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.316e-05/0.2536, allocations: 144 kB / 0.79 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.2536, allocations: 11.81 kB / 0.7901 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.2537, allocations: 45.69 kB / 0.7901 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.2538, allocations: 330.8 kB / 0.7904 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.2539, allocations: 59.97 kB / 0.7905 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.254, allocations: 77.62 kB / 0.7905 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.2542, allocations: 93.7 kB / 0.7906 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2542, allocations: 0 / 0.7906 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002885/0.2545, allocations: 195.8 kB / 0.7908 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.2545, allocations: 8 kB / 0.7908 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2545, allocations: 4.031 kB / 0.7908 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2546, allocations: 7.922 kB / 0.7908 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.2547, allocations: 27.92 kB / 0.7909 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2547, allocations: 0 / 0.7909 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.2548, allocations: 27.83 kB / 0.7909 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.2549, allocations: 4 kB / 0.7909 GB, free: 5.57 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,greHys.greHys.y,$PRE.greHys.greHys.y,gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.255, allocations: 149.8 kB / 0.791 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.255, allocations: 19.72 kB / 0.7911 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.2551, allocations: 33.67 kB / 0.7911 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2551, allocations: 4 kB / 0.7911 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2551, allocations: 0 / 0.7911 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2551, allocations: 0 / 0.7911 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.2553, allocations: 237.6 kB / 0.7913 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2553, allocations: 0 / 0.7913 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.674e-05/0.2553, allocations: 7.938 kB / 0.7913 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2553, allocations: 0 / 0.7913 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.2554, allocations: 7.938 kB / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2554, allocations: 0 / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2554, allocations: 0 / 0.7913 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.2556, allocations: 144.8 kB / 0.7915 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.756e-05/0.2557, allocations: 92.92 kB / 0.7916 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.2557, allocations: 7.938 kB / 0.7916 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.2558, allocations: 7.984 kB / 0.7916 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.2558, allocations: 15.98 kB / 0.7916 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.2559, allocations: 0 / 0.7916 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002047/0.2561, allocations: 233.9 kB / 0.7918 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2561, allocations: 3.938 kB / 0.7918 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002538/0.2563, allocations: 44.03 kB / 0.7919 GB, free: 4.488 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,greHys.greHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001363/0.2577, allocations: 0.9846 MB / 0.7928 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002494/0.258, allocations: 115.8 kB / 0.7929 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.258, allocations: 0 / 0.7929 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.726e-05/0.2581, allocations: 28 kB / 0.793 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.2584, allocations: 59.7 kB / 0.793 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.261, allocations: 2.303 MB / 0.7953 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.2612, allocations: 0.7476 MB / 0.796 GB, free: 268 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.195e-05/0.2613, allocations: 25.53 kB / 0.796 GB, free: 244 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.2615, allocations: 71.41 kB / 0.7961 GB, free: 172 kB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.2615, allocations: 4 kB / 0.7961 GB, free: 168 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.2817, allocations: 5.101 MB / 0.8011 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.384, allocations: 7.031 kB / 0.8011 GB, free: 11.2 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1)