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.001172/0.001172, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001386/0.001387, allocations: 193.2 kB / 16.25 MB, free: 6.617 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.428/1.428, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.64/1.64, allocations: 292.3 MB / 0.5486 GB, free: 13.65 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.001459/0.001459, allocations: 65.88 kB / 0.6711 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.216, allocations: 114.5 MB / 0.783 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001985/0.218, allocations: 0.7426 MB / 0.7837 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2193, allocations: 1.04 MB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.2193, allocations: 0 / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.2194, allocations: 3.938 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.371e-05/0.2194, allocations: 7.938 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.2197, allocations: 39.95 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.642e-05/0.2198, allocations: 39.92 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.901e-05/0.2199, allocations: 11.94 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.045e-05/0.22, allocations: 19.92 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.077e-05/0.22, allocations: 19.91 kB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.22, allocations: 4 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.023e-05/0.2201, allocations: 19.98 kB / 0.7849 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.564e-05/0.2201, allocations: 15.92 kB / 0.7849 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.2202, allocations: 15.94 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.2203, allocations: 47.84 kB / 0.785 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2203, allocations: 0 / 0.785 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2203, allocations: 0 / 0.785 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.2203, allocations: 0 / 0.785 GB, free: 11.75 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.0004547/0.2208, allocations: 359.7 kB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2208, allocations: 12.03 kB / 0.7853 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.309e-05/0.2208, allocations: 30.75 kB / 0.7853 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.66e-05/0.2209, allocations: 12.84 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.221, allocations: 164.3 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.221, allocations: 12.25 kB / 0.7855 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.221, allocations: 4.375 kB / 0.7855 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.2212, allocations: 58.22 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2212, allocations: 3.938 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.2212, allocations: 4 kB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.2212, allocations: 0 / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.2214, allocations: 43.95 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003939/0.2218, allocations: 276.8 kB / 0.7859 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.222, allocations: 46.48 kB / 0.7859 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9e-05/0.222, allocations: 28.94 kB / 0.786 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.2221, allocations: 0 / 0.786 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.2223, allocations: 75.38 kB / 0.786 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.2223, allocations: 0 / 0.786 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003503/0.2226, allocations: 101.6 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.2227, allocations: 55.41 kB / 0.7862 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.784e-05/0.2228, allocations: 125.7 kB / 0.7863 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.2228, allocations: 25.7 kB / 0.7863 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.122e-05/0.2228, allocations: 84.12 kB / 0.7864 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.2229, allocations: 15.84 kB / 0.7864 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.2229, allocations: 17.72 kB / 0.7864 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.223, allocations: 322.8 kB / 0.7868 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.251e-05/0.2231, allocations: 23.98 kB / 0.7868 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.2232, allocations: 47.72 kB / 0.7868 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001819/0.2234, allocations: 83.33 kB / 0.7869 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2234, allocations: 0 / 0.7869 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000238/0.2236, allocations: 93.5 kB / 0.787 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.2237, allocations: 7.938 kB / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2237, allocations: 0 / 0.787 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.2237, allocations: 4 kB / 0.787 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2238, allocations: 20.11 kB / 0.787 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2238, allocations: 4.156 kB / 0.787 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.547e-05/0.2239, allocations: 11.97 kB / 0.787 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.2239, allocations: 0 / 0.787 GB, free: 9.363 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 6.966e-05/0.224, allocations: 117.8 kB / 0.7871 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.224, allocations: 7.906 kB / 0.7872 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/0.2243, allocations: 97.55 kB / 0.7872 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2243, allocations: 3.938 kB / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2243, allocations: 0 / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2243, allocations: 0 / 0.7873 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003673/0.2247, allocations: 342.4 kB / 0.7876 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2247, allocations: 0 / 0.7876 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/0.2247, allocations: 4 kB / 0.7876 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2247, allocations: 4.375 kB / 0.7876 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.2248, allocations: 4 kB / 0.7876 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2248, allocations: 11.97 kB / 0.7876 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2248, allocations: 0 / 0.7876 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.225, allocations: 179.4 kB / 0.7878 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.2251, allocations: 85.11 kB / 0.7879 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.2251, allocations: 0 / 0.7879 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.014e-05/0.2252, allocations: 11.98 kB / 0.7879 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/0.2252, allocations: 7.938 kB / 0.7879 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.2252, allocations: 0 / 0.7879 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.868e-05/0.2253, allocations: 87.27 kB / 0.788 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.293e-06/0.2253, allocations: 3.938 kB / 0.788 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002306/0.2255, allocations: 15.94 kB / 0.788 GB, free: 8.289 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.000523/0.226, allocations: 0.7163 MB / 0.7887 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002276/0.2263, allocations: 59.89 kB / 0.7887 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2263, allocations: 0 / 0.7887 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.571e-05/0.2264, allocations: 28.22 kB / 0.7888 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.2266, allocations: 15.94 kB / 0.7888 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.228, allocations: 1.373 MB / 0.7901 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.2282, allocations: 0.6807 MB / 0.7908 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.078e-05/0.2282, allocations: 0 / 0.7908 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.2283, allocations: 19.42 kB / 0.7908 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of SimCode: time 5.01e-07/0.2283, allocations: 4 kB / 0.7908 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01029/0.2386, allocations: 1.544 MB / 0.7923 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.2388, allocations: 209.5 kB / 0.7925 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.872, allocations: 0 / 0.7925 GB, free: 3.562 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)