Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.001531/0.001531, 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.001877/0.001877, allocations: 186.9 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.496/1.496, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.793/1.793, 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.001686/0.001687, allocations: 75.73 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2863, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002446/0.2888, allocations: 0.6931 MB / 0.7843 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.2905, allocations: 1.071 MB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.882e-05/0.2906, allocations: 0 / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.235e-05/0.2907, allocations: 3.938 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.2908, allocations: 7.875 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.2912, allocations: 47.88 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.2914, allocations: 75.78 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2915, allocations: 4 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.412e-05/0.2916, allocations: 27.92 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.264e-05/0.2917, allocations: 39.88 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.2917, allocations: 8 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.582e-05/0.2918, allocations: 12 kB / 0.7856 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.188e-05/0.2918, allocations: 15.92 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.925e-05/0.2919, allocations: 31.91 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.2921, allocations: 75.75 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2921, allocations: 4 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2921, allocations: 0 / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.2921, allocations: 0 / 0.7857 GB, free: 11.11 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007108/0.2928, allocations: 387.5 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.2929, allocations: 12.03 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.2929, allocations: 34.75 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.293, allocations: 4.938 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.2931, allocations: 184.2 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.2932, allocations: 384 / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.2932, allocations: 12.38 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.2934, allocations: 86.08 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2935, allocations: 3.938 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2935, allocations: 0 / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2935, allocations: 4 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.2937, allocations: 55.89 kB / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000559/0.2943, allocations: 308.8 kB / 0.7867 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.2945, allocations: 78.53 kB / 0.7868 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.2946, allocations: 45.02 kB / 0.7869 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.2947, allocations: 7.938 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.295, allocations: 95.3 kB / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.295, allocations: 0 / 0.787 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0005378/0.2955, allocations: 173.5 kB / 0.7871 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.2956, allocations: 51.41 kB / 0.7872 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.2957, allocations: 109.8 kB / 0.7873 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.2957, allocations: 33.7 kB / 0.7873 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.2958, allocations: 92.27 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.2958, allocations: 28.7 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.662e-05/0.2959, allocations: 33.7 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2961, allocations: 318.8 kB / 0.7878 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.2962, allocations: 39.97 kB / 0.7878 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.2963, allocations: 69.55 kB / 0.7879 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.2966, allocations: 98.47 kB / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2966, allocations: 0 / 0.788 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003171/0.2969, allocations: 141.6 kB / 0.7881 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.297, allocations: 4 kB / 0.7881 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.297, allocations: 4 kB / 0.7881 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.297, allocations: 0 / 0.7881 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.2971, allocations: 27.91 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2972, allocations: 0 / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.2972, allocations: 11.84 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.2973, allocations: 8 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001074/0.2974, allocations: 129.8 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.2974, allocations: 7.906 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003616/0.2978, allocations: 145.9 kB / 0.7884 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2978, allocations: 0 / 0.7884 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.2978, allocations: 4.469 kB / 0.7884 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2978, allocations: 0 / 0.7884 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005775/0.2984, allocations: 418.3 kB / 0.7888 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2984, allocations: 0 / 0.7888 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.081e-05/0.2985, allocations: 12.23 kB / 0.7888 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2985, allocations: 0 / 0.7888 GB, free: 7.574 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.2985, allocations: 4 kB / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2985, allocations: 4 kB / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2985, allocations: 0 / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.2989, allocations: 243.3 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.299, allocations: 88.95 kB / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.299, allocations: 0 / 0.7892 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.2991, allocations: 7.984 kB / 0.7892 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.2992, allocations: 15.92 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.2992, allocations: 4 kB / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.585e-05/0.2992, allocations: 87.27 kB / 0.7893 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2992, allocations: 4 kB / 0.7893 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002606/0.2995, allocations: 16 kB / 0.7893 GB, free: 7.074 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007537/0.3003, allocations: 0.7697 MB / 0.79 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003259/0.3006, allocations: 99.81 kB / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3006, allocations: 288 / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3008, allocations: 51.91 kB / 0.7902 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.3011, allocations: 11.94 kB / 0.7902 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3028, allocations: 1.502 MB / 0.7917 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3031, allocations: 0.6884 MB / 0.7923 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.124e-05/0.3031, allocations: 8.422 kB / 0.7923 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.886e-05/0.3032, allocations: 23.44 kB / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of SimCode: time 7.11e-07/0.3032, allocations: 0 / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.3235, allocations: 2.031 MB / 0.7943 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.106, allocations: 6.125 kB / 0.7943 GB, free: 1.84 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)