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.001076/0.001076, 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.001113/0.001114, 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.34/1.34, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.649/1.649, 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.001407/0.001407, allocations: 70.06 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2102, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00174/0.212, allocations: 0.6701 MB / 0.7841 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2131, allocations: 1.043 MB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.826e-05/0.2132, allocations: 0 / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.727e-05/0.2132, allocations: 7.922 kB / 0.7852 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.928e-05/0.2133, allocations: 7.922 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.2135, allocations: 43.84 kB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.666e-05/0.2136, allocations: 39.91 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.599e-05/0.2137, allocations: 11.98 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.202e-05/0.2137, allocations: 23.92 kB / 0.7853 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.224e-05/0.2138, allocations: 15.92 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.2138, allocations: 4 kB / 0.7853 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.21e-05/0.2139, allocations: 23.92 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.774e-05/0.2139, allocations: 15.91 kB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.748e-05/0.2139, allocations: 15.94 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.214, allocations: 51.84 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.214, allocations: 0 / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2141, allocations: 0 / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.2141, allocations: 0 / 0.7854 GB, free: 11.38 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.0004326/0.2145, allocations: 355.7 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.2145, allocations: 16.02 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.708e-05/0.2146, allocations: 30.75 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.539e-05/0.2146, allocations: 8.844 kB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.003e-05/0.2147, allocations: 168.3 kB / 0.786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.2147, allocations: 4.312 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.2147, allocations: 8.375 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.2149, allocations: 58.22 kB / 0.786 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.2149, allocations: 11.88 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.2149, allocations: 4 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2149, allocations: 0 / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.2151, allocations: 35.97 kB / 0.7861 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003748/0.2155, allocations: 276.8 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.2156, allocations: 54.55 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.62e-05/0.2157, allocations: 28.88 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.2157, allocations: 0 / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.2159, allocations: 75.38 kB / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.2159, allocations: 0 / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003301/0.2163, allocations: 101.6 kB / 0.7866 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2163, allocations: 51.41 kB / 0.7866 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.76e-05/0.2164, allocations: 121.7 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.2164, allocations: 25.7 kB / 0.7868 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.2165, allocations: 81.2 kB / 0.7869 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.2165, allocations: 19.83 kB / 0.7869 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.2165, allocations: 21.72 kB / 0.7869 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2166, allocations: 322.8 kB / 0.7872 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.984e-05/0.2167, allocations: 23.98 kB / 0.7872 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.863e-05/0.2168, allocations: 47.39 kB / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.217, allocations: 79.34 kB / 0.7874 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.217, allocations: 0 / 0.7874 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002461/0.2173, allocations: 97.58 kB / 0.7874 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.2173, allocations: 8.031 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2173, allocations: 0 / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2173, allocations: 4 kB / 0.7875 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-05/0.2174, allocations: 19.92 kB / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2175, allocations: 4 kB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/0.2175, allocations: 7.984 kB / 0.7875 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.2175, allocations: 0 / 0.7875 GB, free: 8.996 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.522e-05/0.2176, allocations: 117.8 kB / 0.7876 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.2176, allocations: 11.91 kB / 0.7876 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000238/0.2179, allocations: 89.61 kB / 0.7877 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.2179, allocations: 3.938 kB / 0.7877 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2179, allocations: 7.875 kB / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.2179, allocations: 0 / 0.7877 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.2183, allocations: 338.5 kB / 0.788 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2183, allocations: 0 / 0.788 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.381e-05/0.2184, allocations: 7.984 kB / 0.788 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.2184, allocations: 0 / 0.788 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.2184, allocations: 4 kB / 0.788 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2184, allocations: 384 / 0.788 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.2184, allocations: 0 / 0.788 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002521/0.2186, allocations: 199.3 kB / 0.7882 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.342e-05/0.2187, allocations: 81.11 kB / 0.7883 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.2187, allocations: 3.984 kB / 0.7883 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.623e-05/0.2188, allocations: 7.984 kB / 0.7883 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.2188, allocations: 7.938 kB / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.2188, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.835e-05/0.2189, allocations: 87.27 kB / 0.7884 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2189, allocations: 0 / 0.7884 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002282/0.2191, allocations: 12 kB / 0.7884 GB, free: 7.926 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 (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.0005172/0.2197, allocations: 0.7201 MB / 0.7891 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002159/0.2199, allocations: 67.89 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2199, allocations: 0 / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.324e-05/0.22, allocations: 23.98 kB / 0.7892 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.2202, allocations: 16.86 kB / 0.7892 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.2215, allocations: 1.36 MB / 0.7906 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.2217, allocations: 0.6846 MB / 0.7912 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.865e-05/0.2218, allocations: 4 kB / 0.7912 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.2218, allocations: 11.44 kB / 0.7912 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.2218, allocations: 0 / 0.7912 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05003/0.2719, allocations: 1.689 MB / 0.7929 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/7.569, allocations: 14.14 kB / 0.7929 GB, free: 3.27 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/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)