Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.0008516/0.0008516, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.0008943/0.0008943, allocations: 172.7 kB / 15.95 MB, free: 208 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.337/1.337, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.606/1.606, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005419/0.0005419, allocations: 13.84 kB / 0.6738 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2299, allocations: 116.3 MB / 0.7874 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008316/0.2307, allocations: 401.6 kB / 0.7878 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.232, allocations: 1.025 MB / 0.7888 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.57e-05/0.2321, allocations: 7.938 kB / 0.7888 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.151e-05/0.2321, allocations: 0 / 0.7888 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.81e-05/0.2322, allocations: 3.938 kB / 0.7888 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001815/0.2324, allocations: 31.97 kB / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.606e-05/0.2325, allocations: 39.86 kB / 0.7889 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.264e-05/0.2325, allocations: 7.984 kB / 0.7889 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.488e-05/0.2326, allocations: 15.92 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.617e-05/0.2327, allocations: 23.91 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.2327, allocations: 0 / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.2327, allocations: 11.98 kB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.407e-05/0.2327, allocations: 8 kB / 0.7889 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.2328, allocations: 29.64 kB / 0.789 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.449e-05/0.2329, allocations: 47.86 kB / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.457e-06/0.2329, allocations: 0 / 0.789 GB, free: 10.22 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004346/0.2333, allocations: 355.5 kB / 0.7893 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.2334, allocations: 8.031 kB / 0.7894 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.421e-05/0.2334, allocations: 38.56 kB / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.318e-05/0.2334, allocations: 11.91 kB / 0.7894 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.2336, allocations: 182.9 kB / 0.7896 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.2336, allocations: 0 / 0.7896 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.948e-06/0.2336, allocations: 4 kB / 0.7896 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.2338, allocations: 61.67 kB / 0.7896 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.2338, allocations: 0 / 0.7896 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.2338, allocations: 0 / 0.7896 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.2338, allocations: 0 / 0.7896 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.234, allocations: 59.89 kB / 0.7897 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003753/0.2344, allocations: 268.9 kB / 0.79 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.2345, allocations: 54.55 kB / 0.79 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.212e-05/0.2346, allocations: 36.92 kB / 0.79 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.2346, allocations: 3.984 kB / 0.79 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/0.2348, allocations: 75.33 kB / 0.7901 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.2348, allocations: 0 / 0.7901 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.000339/0.2351, allocations: 129.5 kB / 0.7902 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.2352, allocations: 51.41 kB / 0.7903 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.124e-05/0.2353, allocations: 109.8 kB / 0.7904 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.2353, allocations: 25.7 kB / 0.7904 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.14e-05/0.2353, allocations: 88.14 kB / 0.7905 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.2354, allocations: 11.75 kB / 0.7905 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.2354, allocations: 8 kB / 0.7905 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2355, allocations: 318.8 kB / 0.7908 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.603e-05/0.2356, allocations: 27.92 kB / 0.7909 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.2357, allocations: 59.42 kB / 0.7909 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.934e-05/0.2358, allocations: 27.98 kB / 0.7909 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2358, allocations: 0 / 0.7909 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002289/0.236, allocations: 109.6 kB / 0.791 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2361, allocations: 8 kB / 0.791 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.2361, allocations: 0 / 0.791 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.2361, allocations: 0 / 0.791 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.474e-05/0.2362, allocations: 19.92 kB / 0.7911 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.2362, allocations: 8.125 kB / 0.7911 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.556e-05/0.2363, allocations: 11.84 kB / 0.7911 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.2363, allocations: 15.88 kB / 0.7911 GB, free: 7.832 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.187e-05/0.2364, allocations: 113.8 kB / 0.7912 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.2364, allocations: 4 kB / 0.7912 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/0.2366, allocations: 105.5 kB / 0.7913 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2366, allocations: 0 / 0.7913 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2366, allocations: 0 / 0.7913 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2367, allocations: 0 / 0.7913 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003753/0.237, allocations: 358.7 kB / 0.7917 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.237, allocations: 0 / 0.7917 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.2371, allocations: 19.92 kB / 0.7917 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.2371, allocations: 4 kB / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.2371, allocations: 0 / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2371, allocations: 0 / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2371, allocations: 0 / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.2374, allocations: 195.5 kB / 0.7919 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.2374, allocations: 85 kB / 0.7919 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.2375, allocations: 0 / 0.7919 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.383e-05/0.2375, allocations: 12 kB / 0.792 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.2376, allocations: 7.984 kB / 0.792 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.2376, allocations: 0 / 0.792 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.164e-05/0.2376, allocations: 87.23 kB / 0.792 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2376, allocations: 0 / 0.792 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002266/0.2379, allocations: 19.98 kB / 0.7921 GB, free: 6.73 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005373/0.2384, allocations: 0.7202 MB / 0.7928 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002248/0.2387, allocations: 71.89 kB / 0.7928 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2387, allocations: 0 / 0.7928 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.02e-05/0.2388, allocations: 27.98 kB / 0.7929 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.239, allocations: 12.25 kB / 0.7929 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000843/0.2399, allocations: 0.4923 MB / 0.7934 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.2401, allocations: 0.6809 MB / 0.794 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.914e-05/0.2401, allocations: 8 kB / 0.794 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.2402, allocations: 15.42 kB / 0.794 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of SimCode: time 4.71e-07/0.2402, allocations: 0 / 0.794 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01027/0.2505, allocations: 1.432 MB / 0.7954 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.2507, allocations: 201.4 kB / 0.7956 GB, free: 3.051 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/1.826, allocations: 3.938 kB / 0.7956 GB, free: 3.047 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) Environment - environmentSimulation: