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.001152/0.001152, 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.001291/0.001291, allocations: 195.9 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.42/1.42, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.741/1.741, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001539/0.001539, allocations: 77.3 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2727, 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.002223/0.275, allocations: 1.021 MB / 0.7845 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001757/0.2767, allocations: 1.309 MB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.471e-05/0.2768, allocations: 4 kB / 0.7858 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.545e-05/0.2769, allocations: 19.73 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.2771, allocations: 35.66 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007204/0.2778, allocations: 261.4 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000344/0.2781, allocations: 339.3 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.2783, allocations: 41.67 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.2785, allocations: 119.7 kB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.2786, allocations: 115.5 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.2787, allocations: 32 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.2788, allocations: 47.98 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.461e-05/0.2788, allocations: 35.84 kB / 0.7868 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.279, allocations: 119.5 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.2793, allocations: 331.3 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2793, allocations: 3.938 kB / 0.7872 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2794, allocations: 0 / 0.7872 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.2794, allocations: 4 kB / 0.7872 GB, free: 9.547 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.0009127/0.2803, allocations: 0.5643 MB / 0.7878 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.2804, allocations: 8.031 kB / 0.7878 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.2804, allocations: 46.67 kB / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.2805, allocations: 20.75 kB / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000795/0.2813, allocations: 315.7 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.2813, allocations: 12.38 kB / 0.7882 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.2814, allocations: 20.38 kB / 0.7882 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002683/0.2817, allocations: 142.8 kB / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2817, allocations: 0 / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2817, allocations: 0 / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2817, allocations: 4 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.282, allocations: 71.88 kB / 0.7884 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007827/0.2828, allocations: 0.653 MB / 0.789 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003936/0.2832, allocations: 139.9 kB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.2833, allocations: 50.66 kB / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.2833, allocations: 3.984 kB / 0.7892 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003483/0.2837, allocations: 145.8 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.2837, allocations: 0 / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0005599/0.2843, allocations: 201.3 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/0.2844, allocations: 122.7 kB / 0.7897 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/0.2846, allocations: 190.6 kB / 0.7898 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.2846, allocations: 37.7 kB / 0.7899 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.2847, allocations: 124.3 kB / 0.79 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.2848, allocations: 39.61 kB / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2849, allocations: 65.67 kB / 0.7901 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.285, allocations: 326.8 kB / 0.7904 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.2853, allocations: 99.89 kB / 0.7905 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.2855, allocations: 155.4 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.2859, allocations: 233.2 kB / 0.7909 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.286, allocations: 0 / 0.7909 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006669/0.2866, allocations: 352.8 kB / 0.7912 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.2867, allocations: 59.41 kB / 0.7913 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2867, allocations: 0 / 0.7913 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.2867, allocations: 4 kB / 0.7913 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.2868, allocations: 23.86 kB / 0.7913 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.2869, allocations: 7.938 kB / 0.7913 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.2872, allocations: 71.77 kB / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.2873, allocations: 20.67 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.0001468/0.2874, allocations: 133.8 kB / 0.7915 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.2875, allocations: 23.75 kB / 0.7915 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.2878, allocations: 94.56 kB / 0.7916 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2878, allocations: 4 kB / 0.7916 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.2878, allocations: 3.938 kB / 0.7916 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2878, allocations: 4 kB / 0.7916 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.288, allocations: 237.5 kB / 0.7919 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2881, allocations: 4 kB / 0.7919 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.626e-05/0.2882, allocations: 19.98 kB / 0.7919 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.2882, allocations: 3.938 kB / 0.7919 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.2882, allocations: 4 kB / 0.7919 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2882, allocations: 0 / 0.7919 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.2882, allocations: 3.938 kB / 0.7919 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.2886, allocations: 190.6 kB / 0.7921 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.2887, allocations: 100.9 kB / 0.7922 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.2887, allocations: 3.938 kB / 0.7922 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.2888, allocations: 19.98 kB / 0.7922 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.94e-05/0.2889, allocations: 31.83 kB / 0.7922 GB, free: 3.906 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.2889, allocations: 8 kB / 0.7922 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001183/0.289, allocations: 135.2 kB / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.289, allocations: 0 / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002739/0.2893, allocations: 43.94 kB / 0.7924 GB, free: 3.723 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.000717/0.29, allocations: 0.7493 MB / 0.7931 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005646/0.2906, allocations: 330.4 kB / 0.7934 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2906, allocations: 0 / 0.7934 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.2908, allocations: 63.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.000311/0.2911, allocations: 44.78 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.003009/0.2941, allocations: 2.299 MB / 0.7958 GB, free: 52 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.2945, allocations: 0.7203 MB / 0.7965 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001108/0.2947, allocations: 29.52 kB / 0.7965 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.527e-05/0.2948, allocations: 55.42 kB / 0.7966 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of SimCode: time 7.32e-07/0.2948, allocations: 0 / 0.7966 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.3181, allocations: 4.905 MB / 0.8014 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.122, allocations: 11.59 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)