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.001149/0.001149, allocations: 108 kB / 15.61 MB, free: 148 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.001232/0.001232, allocations: 197 kB / 16.53 MB, free: 6.656 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.419/1.419, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.794/1.794, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001417/0.001417, allocations: 70.08 kB / 0.6716 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2399, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003562/0.2435, allocations: 1.925 MB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001757/0.2453, allocations: 1.02 MB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.2455, allocations: 7.938 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003934/0.2459, allocations: 103.5 kB / 0.7865 GB, free: 10.31 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.0003146/0.2462, allocations: 95.58 kB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.2466, allocations: 127 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.2469, allocations: 203.5 kB / 0.7869 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.247, allocations: 45.66 kB / 0.7869 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.2472, allocations: 91.56 kB / 0.787 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.2473, allocations: 95.66 kB / 0.7871 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.2474, allocations: 12 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2475, allocations: 67.91 kB / 0.7872 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.297e-05/0.2476, allocations: 55.77 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.545e-05/0.2477, allocations: 83.47 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.248, allocations: 267.3 kB / 0.7876 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.248, allocations: 0 / 0.7876 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.383e-06/0.248, allocations: 0 / 0.7876 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.248, allocations: 0 / 0.7876 GB, free: 9.195 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.0008076/0.2488, allocations: 0.537 MB / 0.7881 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2489, allocations: 12.03 kB / 0.7881 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.2489, allocations: 34.73 kB / 0.7881 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.27e-05/0.249, allocations: 28.66 kB / 0.7882 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.2494, allocations: 303.7 kB / 0.7885 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.2494, allocations: 8.125 kB / 0.7885 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.2494, allocations: 11.98 kB / 0.7885 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.2496, allocations: 85.59 kB / 0.7886 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.2496, allocations: 0 / 0.7886 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.2496, allocations: 8 kB / 0.7886 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2497, allocations: 0 / 0.7886 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.2498, allocations: 35.98 kB / 0.7886 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006335/0.2504, allocations: 420.5 kB / 0.789 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.2507, allocations: 78.67 kB / 0.7891 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.858e-05/0.2507, allocations: 28.84 kB / 0.7891 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2508, allocations: 0 / 0.7891 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.2509, allocations: 83.38 kB / 0.7892 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 3.146e-06/0.2509, allocations: 0 / 0.7892 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003346/0.2513, allocations: 137.2 kB / 0.7893 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.2513, allocations: 51.41 kB / 0.7894 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.2517, allocations: 366.9 kB / 0.7897 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.2517, allocations: 25.7 kB / 0.7897 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.2518, allocations: 140 kB / 0.7899 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.2519, allocations: 23.8 kB / 0.7899 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.942e-05/0.252, allocations: 41.7 kB / 0.7899 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2521, allocations: 338.8 kB / 0.7903 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.2522, allocations: 47.98 kB / 0.7903 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.2523, allocations: 77.69 kB / 0.7904 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.2525, allocations: 104.4 kB / 0.7905 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2525, allocations: 4 kB / 0.7905 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003118/0.2529, allocations: 193.2 kB / 0.7907 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2529, allocations: 4 kB / 0.7907 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2529, allocations: 0 / 0.7907 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.2529, allocations: 3.938 kB / 0.7907 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.253, allocations: 23.98 kB / 0.7907 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.253, allocations: 0 / 0.7907 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2532, allocations: 23.83 kB / 0.7907 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.2532, allocations: 4 kB / 0.7907 GB, free: 5.719 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.0001348/0.2533, allocations: 157.8 kB / 0.7909 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.2534, allocations: 19.72 kB / 0.7909 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.2534, allocations: 29.98 kB / 0.7909 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2534, allocations: 4 kB / 0.7909 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2535, allocations: 3.938 kB / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2535, allocations: 3.984 kB / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.2537, allocations: 241.5 kB / 0.7912 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2537, allocations: 0 / 0.7912 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.2537, allocations: 4 kB / 0.7912 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2537, allocations: 8 kB / 0.7912 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.2537, allocations: 7.922 kB / 0.7912 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2537, allocations: 0 / 0.7912 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.2537, allocations: 4 kB / 0.7912 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002177/0.254, allocations: 140.8 kB / 0.7913 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.254, allocations: 92.92 kB / 0.7914 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.2541, allocations: 11.92 kB / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.151e-05/0.2542, allocations: 12 kB / 0.7914 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.2542, allocations: 11.98 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.2542, allocations: 7.984 kB / 0.7914 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002134/0.2545, allocations: 221.9 kB / 0.7917 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2545, allocations: 0 / 0.7917 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002548/0.2547, allocations: 44.03 kB / 0.7917 GB, free: 4.621 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.001309/0.256, allocations: 0.9911 MB / 0.7927 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.2563, allocations: 107.8 kB / 0.7928 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2563, allocations: 0 / 0.7928 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.209e-05/0.2564, allocations: 31.98 kB / 0.7928 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.2568, allocations: 61.27 kB / 0.7929 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.2593, allocations: 2.297 MB / 0.7951 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.2596, allocations: 0.7554 MB / 0.7958 GB, free: 412 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.778e-05/0.2597, allocations: 29.67 kB / 0.7959 GB, free: 384 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2598, allocations: 63.42 kB / 0.7959 GB, free: 324 kB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2598, allocations: 0 / 0.7959 GB, free: 324 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.2834, allocations: 5.089 MB / 0.8009 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/8.103, allocations: 16.84 kB / 0.8009 GB, free: 11.34 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)