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.001312/0.001312, allocations: 109.4 kB / 15.69 MB, free: 128 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.001425/0.001425, allocations: 188 kB / 16.62 MB, free: 6.582 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.652/1.652, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.874/1.874, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.00257/0.00257, allocations: 66.08 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2976, allocations: 114.6 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002829/0.3004, allocations: 0.6737 MB / 0.7843 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3023, allocations: 1.047 MB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.073e-05/0.3024, allocations: 0 / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.3025, allocations: 3.938 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.209e-05/0.3026, allocations: 3.938 kB / 0.7853 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.303, allocations: 47.83 kB / 0.7854 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.3032, allocations: 43.91 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3033, allocations: 8 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.245e-05/0.3034, allocations: 19.92 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.255e-05/0.3035, allocations: 23.84 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.3035, allocations: 4 kB / 0.7855 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.007e-05/0.3036, allocations: 19.98 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.403e-05/0.3036, allocations: 7.938 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.743e-05/0.3037, allocations: 15.92 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.3039, allocations: 59.78 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3039, allocations: 4 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.446e-06/0.3039, allocations: 0 / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.3039, allocations: 0 / 0.7856 GB, free: 11.27 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.0006321/0.3046, allocations: 351.7 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.3046, allocations: 15.97 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.3047, allocations: 34.73 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/0.3047, allocations: 8.844 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.3049, allocations: 164.3 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.3049, allocations: 4.375 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.305, allocations: 8.375 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.3052, allocations: 54.23 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3052, allocations: 7.875 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3053, allocations: 3.984 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.3053, allocations: 0 / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.3055, allocations: 39.97 kB / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.3061, allocations: 288.8 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.3062, allocations: 50.55 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.021e-05/0.3063, allocations: 24.94 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.3063, allocations: 3.938 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.3066, allocations: 71.39 kB / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.553e-06/0.3066, allocations: 0 / 0.7867 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0004373/0.307, allocations: 101.6 kB / 0.7868 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.3071, allocations: 51.41 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.3072, allocations: 109.8 kB / 0.7869 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.3073, allocations: 37.64 kB / 0.7869 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.908e-05/0.3073, allocations: 85.2 kB / 0.787 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.3074, allocations: 19.83 kB / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.3074, allocations: 17.72 kB / 0.7871 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3075, allocations: 314.8 kB / 0.7874 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.536e-05/0.3077, allocations: 27.97 kB / 0.7874 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.3078, allocations: 51.41 kB / 0.7874 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.308, allocations: 71.34 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.308, allocations: 0 / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002662/0.3083, allocations: 105.5 kB / 0.7876 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3083, allocations: 4 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3083, allocations: 3.984 kB / 0.7876 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3083, allocations: 7.938 kB / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.3084, allocations: 15.98 kB / 0.7876 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3085, allocations: 7.938 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.639e-05/0.3085, allocations: 7.984 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.3085, allocations: 8.062 kB / 0.7877 GB, free: 8.875 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 9.245e-05/0.3086, allocations: 120.6 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3087, allocations: 7.906 kB / 0.7878 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.3089, allocations: 89.61 kB / 0.7879 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3089, allocations: 0 / 0.7879 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.309, allocations: 0 / 0.7879 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.309, allocations: 3.938 kB / 0.7879 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.3094, allocations: 338.5 kB / 0.7882 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3094, allocations: 384 / 0.7882 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.3095, allocations: 7.984 kB / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.3095, allocations: 4 kB / 0.7882 GB, free: 8.242 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3095, allocations: 4 kB / 0.7882 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3095, allocations: 0 / 0.7882 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3095, allocations: 0 / 0.7882 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.3098, allocations: 191.3 kB / 0.7884 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.3098, allocations: 81.11 kB / 0.7885 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.3099, allocations: 4 kB / 0.7885 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.838e-05/0.3099, allocations: 7.984 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.31, allocations: 7.938 kB / 0.7885 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.31, allocations: 0 / 0.7885 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.964e-05/0.3101, allocations: 95.25 kB / 0.7886 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3e-07/0.3101, allocations: 0 / 0.7886 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002417/0.3103, allocations: 12 kB / 0.7886 GB, free: 7.812 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.0006043/0.3109, allocations: 0.7232 MB / 0.7893 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.3112, allocations: 59.89 kB / 0.7893 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3112, allocations: 0 / 0.7893 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3114, allocations: 27.98 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.3117, allocations: 12.86 kB / 0.7894 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.3136, allocations: 1.364 MB / 0.7907 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.3141, allocations: 0.6846 MB / 0.7914 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.3141, allocations: 4 kB / 0.7914 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.293e-05/0.3142, allocations: 19.42 kB / 0.7914 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.3142, allocations: 3.938 kB / 0.7914 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.3345, allocations: 1.691 MB / 0.7931 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.391/7.726, allocations: 8.5 kB / 0.7931 GB, free: 3.152 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)