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.0008708/0.0008709, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 222.1 MB, free: 5.617 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.562/1.562, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005726/0.0005726, allocations: 20.09 kB / 0.6738 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2273, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008309/0.2282, allocations: 405.5 kB / 0.7878 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.2296, allocations: 1.041 MB / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.622e-05/0.2297, allocations: 0 / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.782e-05/0.2297, allocations: 3.984 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.833e-05/0.2298, allocations: 7.938 kB / 0.7888 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.23, allocations: 31.97 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.466e-05/0.2301, allocations: 43.84 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.999e-05/0.2302, allocations: 8 kB / 0.7889 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.133e-05/0.2303, allocations: 23.91 kB / 0.7889 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.466e-05/0.2304, allocations: 27.84 kB / 0.789 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2304, allocations: 0 / 0.789 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.526e-05/0.2305, allocations: 15.98 kB / 0.789 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.95e-05/0.2305, allocations: 15.88 kB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.2305, allocations: 29.7 kB / 0.789 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.2306, allocations: 35.91 kB / 0.789 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2307, allocations: 0 / 0.789 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2307, allocations: 0 / 0.789 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.2307, allocations: 0 / 0.789 GB, free: 10.14 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.0006084/0.2313, allocations: 371.5 kB / 0.7894 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2313, allocations: 8.031 kB / 0.7894 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.096e-05/0.2314, allocations: 38.55 kB / 0.7894 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.544e-05/0.2314, allocations: 7.906 kB / 0.7895 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.2316, allocations: 174.9 kB / 0.7896 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.2316, allocations: 4 kB / 0.7896 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.2316, allocations: 4 kB / 0.7896 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.2318, allocations: 69.66 kB / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.2319, allocations: 0 / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.2319, allocations: 0 / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2319, allocations: 0 / 0.7897 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.2321, allocations: 55.95 kB / 0.7897 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.2326, allocations: 284.8 kB / 0.79 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.2328, allocations: 70.53 kB / 0.7901 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.696e-05/0.2329, allocations: 36.95 kB / 0.7901 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.2329, allocations: 0 / 0.7901 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.2332, allocations: 87.38 kB / 0.7902 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.2332, allocations: 0 / 0.7902 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0003889/0.2336, allocations: 145.5 kB / 0.7903 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.2336, allocations: 51.41 kB / 0.7904 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.26e-05/0.2337, allocations: 109.8 kB / 0.7905 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.2337, allocations: 25.7 kB / 0.7905 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.2338, allocations: 84.12 kB / 0.7906 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.2338, allocations: 27.72 kB / 0.7906 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.2338, allocations: 3.938 kB / 0.7906 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2339, allocations: 322.8 kB / 0.7909 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.186e-05/0.234, allocations: 31.98 kB / 0.791 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.2342, allocations: 60.27 kB / 0.791 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.2343, allocations: 47.91 kB / 0.7911 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2343, allocations: 0 / 0.7911 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002517/0.2345, allocations: 121.8 kB / 0.7912 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2346, allocations: 8 kB / 0.7912 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2346, allocations: 3.938 kB / 0.7912 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2346, allocations: 3.938 kB / 0.7912 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.2347, allocations: 19.98 kB / 0.7912 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2347, allocations: 4 kB / 0.7912 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.799e-05/0.2348, allocations: 16 kB / 0.7912 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.2348, allocations: 11.94 kB / 0.7913 GB, free: 7.633 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.339e-05/0.2349, allocations: 117.8 kB / 0.7914 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.2349, allocations: 0 / 0.7914 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002745/0.2352, allocations: 122 kB / 0.7915 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2352, allocations: 256 / 0.7915 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2352, allocations: 0 / 0.7915 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.2352, allocations: 4 kB / 0.7915 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.2357, allocations: 378.3 kB / 0.7918 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2357, allocations: 0 / 0.7918 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.962e-05/0.2357, allocations: 11.98 kB / 0.7919 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2358, allocations: 0 / 0.7919 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.2358, allocations: 4 kB / 0.7919 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.2358, allocations: 3.984 kB / 0.7919 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2358, allocations: 0 / 0.7919 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002762/0.2361, allocations: 207.9 kB / 0.7921 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.2361, allocations: 92.94 kB / 0.7922 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.2362, allocations: 0 / 0.7922 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.2363, allocations: 19.94 kB / 0.7922 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.2363, allocations: 7.984 kB / 0.7922 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.2363, allocations: 0 / 0.7922 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.169e-05/0.2364, allocations: 91.22 kB / 0.7923 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2364, allocations: 0 / 0.7923 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002383/0.2366, allocations: 12 kB / 0.7923 GB, free: 6.477 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005923/0.2372, allocations: 0.7397 MB / 0.793 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002389/0.2375, allocations: 87.88 kB / 0.7931 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2375, allocations: 0 / 0.7931 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.2376, allocations: 35.92 kB / 0.7931 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.2379, allocations: 14.8 kB / 0.7931 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009223/0.2388, allocations: 0.5143 MB / 0.7936 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.239, allocations: 0.6809 MB / 0.7943 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.589e-05/0.2391, allocations: 12.17 kB / 0.7943 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.2391, allocations: 19.42 kB / 0.7943 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2391, allocations: 3.938 kB / 0.7943 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.2507, allocations: 1.53 MB / 0.7958 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.2509, allocations: 190.6 kB / 0.796 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.585/1.836, allocations: 0 / 0.796 GB, free: 2.629 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --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) Environment - environmentSimulation: