Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.001549/0.001549, allocations: 108 kB / 15.61 MB, free: 152 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.00197/0.00197, allocations: 195 kB / 16.53 MB, free: 6.664 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.346/1.346, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.787/1.787, 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.001414/0.001414, allocations: 69.7 kB / 0.6716 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2337, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001881/0.2356, allocations: 0.674 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.2368, allocations: 1.067 MB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.122e-05/0.2369, allocations: 4 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.2369, allocations: 3.938 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.005e-05/0.237, allocations: 3.938 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.2373, allocations: 39.83 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.086e-05/0.2374, allocations: 47.91 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.79e-05/0.2375, allocations: 16 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.447e-05/0.2376, allocations: 19.92 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.919e-05/0.2376, allocations: 31.89 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.2376, allocations: 4 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.988e-05/0.2377, allocations: 19.94 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.2377, allocations: 15.92 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.2378, allocations: 15.92 kB / 0.7854 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.2379, allocations: 59.78 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2379, allocations: 4 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2379, allocations: 0 / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.285e-06/0.2379, allocations: 0 / 0.7855 GB, free: 11.34 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005823/0.2385, allocations: 374.1 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.2386, allocations: 8.031 kB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.2386, allocations: 38.75 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.2387, allocations: 4.844 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.2388, allocations: 168.3 kB / 0.786 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.2388, allocations: 384 / 0.786 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.2388, allocations: 8.359 kB / 0.786 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.239, allocations: 70.16 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2391, allocations: 7.938 kB / 0.7861 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.2391, allocations: 0 / 0.7861 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2391, allocations: 0 / 0.7861 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.2393, allocations: 43.95 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.2397, allocations: 280.7 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.2399, allocations: 62.55 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.77e-05/0.24, allocations: 32.89 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.24, allocations: 4 kB / 0.7865 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.2402, allocations: 72.44 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.2403, allocations: 0 / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004055/0.2407, allocations: 133.7 kB / 0.7867 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.2407, allocations: 55.41 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.42e-05/0.2408, allocations: 113.8 kB / 0.7869 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.2408, allocations: 25.7 kB / 0.7869 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.208e-05/0.2409, allocations: 84.05 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.2409, allocations: 23.69 kB / 0.787 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.241, allocations: 33.7 kB / 0.787 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2411, allocations: 318.7 kB / 0.7873 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2412, allocations: 27.97 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.2413, allocations: 56.27 kB / 0.7874 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.2415, allocations: 96.19 kB / 0.7875 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2415, allocations: 0 / 0.7875 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002705/0.2418, allocations: 121.7 kB / 0.7876 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2418, allocations: 8 kB / 0.7876 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.2418, allocations: 0 / 0.7876 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2418, allocations: 4 kB / 0.7876 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.242, allocations: 19.98 kB / 0.7876 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.242, allocations: 3.938 kB / 0.7877 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.544e-05/0.242, allocations: 7.984 kB / 0.7877 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.2421, allocations: 8 kB / 0.7877 GB, free: 8.812 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.065e-05/0.2422, allocations: 121.8 kB / 0.7878 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.2422, allocations: 7.906 kB / 0.7878 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.2425, allocations: 102 kB / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2425, allocations: 0 / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2425, allocations: 0 / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2425, allocations: 7.938 kB / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004228/0.2429, allocations: 362.5 kB / 0.7882 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2429, allocations: 0 / 0.7882 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.243, allocations: 8 kB / 0.7882 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.243, allocations: 3.984 kB / 0.7883 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.243, allocations: 0 / 0.7883 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.243, allocations: 0 / 0.7883 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.243, allocations: 0 / 0.7883 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000274/0.2433, allocations: 207.4 kB / 0.7885 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.414e-05/0.2434, allocations: 88.95 kB / 0.7885 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.2434, allocations: 0 / 0.7885 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.889e-05/0.2435, allocations: 11.98 kB / 0.7885 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.2435, allocations: 7.938 kB / 0.7886 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.2435, allocations: 4 kB / 0.7886 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.653e-05/0.2436, allocations: 87.27 kB / 0.7886 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2436, allocations: 4 kB / 0.7886 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002431/0.2438, allocations: 12.19 kB / 0.7887 GB, free: 7.691 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0005738/0.2444, allocations: 0.7356 MB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002564/0.2447, allocations: 79.86 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2447, allocations: 0 / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.2448, allocations: 31.98 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.2451, allocations: 14.58 kB / 0.7895 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.2466, allocations: 1.411 MB / 0.7909 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.2468, allocations: 0.6884 MB / 0.7915 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.375e-05/0.2469, allocations: 8.125 kB / 0.7916 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.543e-05/0.2469, allocations: 15.44 kB / 0.7916 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of SimCode: time 3.4e-07/0.2469, allocations: 0 / 0.7916 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.264, allocations: 1.77 MB / 0.7933 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.135, allocations: 11.81 kB / 0.7933 GB, free: 2.855 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)