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.001242/0.001242, 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.001736/0.001736, allocations: 185.8 kB / 16.62 MB, free: 6.613 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.589/1.589, 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.8/1.8, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001509/0.00151, allocations: 73 kB / 0.6718 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2756, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002485/0.2781, allocations: 1.029 MB / 0.7846 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2798, allocations: 1.309 MB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.808e-05/0.2799, allocations: 4 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.097e-05/0.28, allocations: 11.81 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.2801, allocations: 39.64 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007032/0.2808, allocations: 265.7 kB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003764/0.2812, allocations: 343.3 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.2814, allocations: 45.66 kB / 0.7866 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.2816, allocations: 119.7 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.2817, allocations: 119.5 kB / 0.7868 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.2818, allocations: 32 kB / 0.7869 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.2819, allocations: 59.97 kB / 0.7869 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.237e-05/0.282, allocations: 39.78 kB / 0.787 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.2821, allocations: 115.5 kB / 0.7871 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.2824, allocations: 339.3 kB / 0.7874 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2824, allocations: 0 / 0.7874 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.714e-06/0.2825, allocations: 0 / 0.7874 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.2825, allocations: 0 / 0.7874 GB, free: 9.387 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.0008993/0.2834, allocations: 0.5604 MB / 0.7879 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.2834, allocations: 15.97 kB / 0.788 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.2835, allocations: 46.67 kB / 0.788 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.256e-05/0.2836, allocations: 24.75 kB / 0.788 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007829/0.2843, allocations: 300 kB / 0.7883 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.2844, allocations: 16.38 kB / 0.7883 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.2844, allocations: 16.38 kB / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.2847, allocations: 142.8 kB / 0.7885 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2848, allocations: 0 / 0.7885 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.2848, allocations: 8 kB / 0.7885 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.2848, allocations: 7.938 kB / 0.7885 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.2851, allocations: 79.88 kB / 0.7886 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008585/0.2859, allocations: 0.6335 MB / 0.7892 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.2863, allocations: 135.8 kB / 0.7893 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.2865, allocations: 58.73 kB / 0.7894 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.2865, allocations: 0 / 0.7894 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003674/0.2869, allocations: 156.5 kB / 0.7895 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.2869, allocations: 0 / 0.7895 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0005943/0.2875, allocations: 205.3 kB / 0.7897 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.2876, allocations: 110.8 kB / 0.7898 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.2879, allocations: 190.6 kB / 0.79 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.2879, allocations: 37.7 kB / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.288, allocations: 124.3 kB / 0.7902 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.919e-05/0.2881, allocations: 35.61 kB / 0.7902 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.2882, allocations: 61.67 kB / 0.7903 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2884, allocations: 334.8 kB / 0.7906 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.2887, allocations: 95.89 kB / 0.7907 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.2889, allocations: 155.4 kB / 0.7908 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.2893, allocations: 229.2 kB / 0.791 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2893, allocations: 0 / 0.791 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006305/0.29, allocations: 348.6 kB / 0.7914 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.292e-05/0.29, allocations: 71.39 kB / 0.7914 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.29, allocations: 3.984 kB / 0.7914 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2901, allocations: 4 kB / 0.7914 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.795e-05/0.2902, allocations: 19.92 kB / 0.7915 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.2902, allocations: 12.56 kB / 0.7915 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.2905, allocations: 67.89 kB / 0.7915 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.2906, allocations: 19.98 kB / 0.7916 GB, free: 4.73 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.0001546/0.2908, allocations: 138.5 kB / 0.7917 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.2908, allocations: 15.81 kB / 0.7917 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.2911, allocations: 102.5 kB / 0.7918 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2911, allocations: 0 / 0.7918 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.2911, allocations: 11.92 kB / 0.7918 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2911, allocations: 4 kB / 0.7918 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.2914, allocations: 237.5 kB / 0.792 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2914, allocations: 0 / 0.792 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.944e-05/0.2915, allocations: 15.98 kB / 0.7921 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2915, allocations: 0 / 0.7921 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.2915, allocations: 4 kB / 0.7921 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2915, allocations: 7.938 kB / 0.7921 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2915, allocations: 3.938 kB / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003621/0.2919, allocations: 194.8 kB / 0.7923 GB, free: 3.918 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.46e-05/0.292, allocations: 96.91 kB / 0.7923 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.292, allocations: 4 kB / 0.7924 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.2921, allocations: 19.97 kB / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/0.2922, allocations: 27.89 kB / 0.7924 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2923, allocations: 8 kB / 0.7924 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001447/0.2924, allocations: 144.4 kB / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2924, allocations: 0 / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002807/0.2927, allocations: 43.94 kB / 0.7926 GB, free: 3.562 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.0009311/0.2936, allocations: 0.7428 MB / 0.7933 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006621/0.2943, allocations: 318.6 kB / 0.7936 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2943, allocations: 0 / 0.7936 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.2945, allocations: 63.91 kB / 0.7937 GB, free: 2.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.2948, allocations: 43.75 kB / 0.7937 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.298, allocations: 2.31 MB / 0.796 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.2983, allocations: 0.7281 MB / 0.7967 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.513e-05/0.2984, allocations: 21.55 kB / 0.7967 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.414e-05/0.2985, allocations: 59.41 kB / 0.7968 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of SimCode: time 2.21e-07/0.2985, allocations: 0 / 0.7968 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3216, allocations: 4.927 MB / 0.8016 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/8.015, allocations: 8.328 kB / 0.8016 GB, free: 10.26 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)