Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.Hysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.0009883/0.0009883, allocations: 108 kB / 15.6 MB, free: 132 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.001166/0.001166, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.184/1.184, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.56/1.56, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001321/0.001321, allocations: 70.22 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1719, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002005/0.174, allocations: 1.021 MB / 0.7845 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1753, allocations: 1.309 MB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.063e-05/0.1754, allocations: 0 / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.967e-05/0.1754, allocations: 15.8 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1755, allocations: 35.66 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000583/0.1761, allocations: 274 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1764, allocations: 331.3 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.1765, allocations: 49.64 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.1766, allocations: 123.7 kB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.1768, allocations: 111.6 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.1768, allocations: 35.94 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.873e-05/0.1769, allocations: 47.92 kB / 0.7868 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.7e-05/0.177, allocations: 43.83 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1771, allocations: 115.5 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.1774, allocations: 335.3 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1774, allocations: 0 / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1774, allocations: 0 / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.1774, allocations: 0 / 0.7872 GB, free: 9.543 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007315/0.1781, allocations: 0.5643 MB / 0.7878 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.1782, allocations: 8.031 kB / 0.7878 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.1782, allocations: 46.73 kB / 0.7878 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.157e-05/0.1783, allocations: 20.75 kB / 0.7878 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.179, allocations: 315.7 kB / 0.7882 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.179, allocations: 12.38 kB / 0.7882 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/0.179, allocations: 20.38 kB / 0.7882 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.1793, allocations: 136.4 kB / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1793, allocations: 0 / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1793, allocations: 4 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.1793, allocations: 4 kB / 0.7883 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.1796, allocations: 67.94 kB / 0.7884 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006035/0.1802, allocations: 0.6452 MB / 0.789 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.1805, allocations: 143.8 kB / 0.7892 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.1806, allocations: 50.72 kB / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.1807, allocations: 7.984 kB / 0.7892 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.1809, allocations: 141.8 kB / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.1809, allocations: 0 / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0004889/0.1814, allocations: 205.3 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.1815, allocations: 110.7 kB / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.1816, allocations: 194.6 kB / 0.7898 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.1817, allocations: 37.7 kB / 0.7899 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.1818, allocations: 136.4 kB / 0.79 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.1818, allocations: 27.62 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1819, allocations: 69.67 kB / 0.7901 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.182, allocations: 326.8 kB / 0.7904 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.1822, allocations: 95.89 kB / 0.7905 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.1825, allocations: 163.5 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.1828, allocations: 221.8 kB / 0.7909 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1828, allocations: 11.94 kB / 0.7909 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005899/0.1834, allocations: 348.6 kB / 0.7912 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.1835, allocations: 67.41 kB / 0.7913 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1835, allocations: 0 / 0.7913 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1835, allocations: 4 kB / 0.7913 GB, free: 5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.752e-05/0.1836, allocations: 15.98 kB / 0.7913 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1836, allocations: 15.98 kB / 0.7913 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.184, allocations: 67.78 kB / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.184, allocations: 19.97 kB / 0.7914 GB, free: 4.883 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001068/0.1841, allocations: 134.1 kB / 0.7915 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.1842, allocations: 27.78 kB / 0.7915 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/0.1844, allocations: 98.52 kB / 0.7916 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1844, allocations: 4 kB / 0.7916 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1844, allocations: 3.938 kB / 0.7916 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1844, allocations: 4 kB / 0.7916 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.1846, allocations: 237.5 kB / 0.7919 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1846, allocations: 0 / 0.7919 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.869e-05/0.1847, allocations: 15.98 kB / 0.7919 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1847, allocations: 4 kB / 0.7919 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1847, allocations: 8 kB / 0.7919 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1847, allocations: 0 / 0.7919 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1847, allocations: 7.875 kB / 0.7919 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.1851, allocations: 197.3 kB / 0.7921 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.1851, allocations: 88.92 kB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/0.1852, allocations: 11.94 kB / 0.7922 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.1853, allocations: 11.98 kB / 0.7922 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.1853, allocations: 31.89 kB / 0.7922 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.1854, allocations: 8 kB / 0.7922 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.124e-05/0.1855, allocations: 135.2 kB / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1855, allocations: 0 / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002548/0.1857, allocations: 47.94 kB / 0.7924 GB, free: 3.719 MB / 0.6075 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 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0005927/0.1863, allocations: 0.7508 MB / 0.7931 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005009/0.1868, allocations: 314.6 kB / 0.7934 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1868, allocations: 0 / 0.7934 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.187, allocations: 67.91 kB / 0.7935 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.1873, allocations: 44.09 kB / 0.7936 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.1898, allocations: 2.295 MB / 0.7958 GB, free: 56 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.1901, allocations: 0.7165 MB / 0.7965 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.404e-05/0.1902, allocations: 25.55 kB / 0.7965 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.766e-05/0.1902, allocations: 63.34 kB / 0.7966 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of SimCode: time 4.51e-07/0.1902, allocations: 0 / 0.7966 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.125/3.315, allocations: 4.911 MB / 0.8014 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.996/13.31, allocations: 11.44 kB / 0.8014 GB, free: 10.42 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)