Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.31/1.31, allocations: 251.5 MB / 266.7 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009986/0.0009985, allocations: 181.2 kB / 325.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205 MB / 0.576 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006801/0.0006801, allocations: 89.17 kB / 0.6797 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.00029, allocations: 9.594 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.183, allocations: 105.4 MB / 0.8962 GB, free: 68.03 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001239/0.1843, allocations: 1.124 MB / 0.8973 GB, free: 66.89 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003761/0.1847, allocations: 229.9 kB / 0.8975 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.637e-05/0.1847, allocations: 4 kB / 0.8975 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.1848, allocations: 3.938 kB / 0.8975 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.783e-05/0.1848, allocations: 11.91 kB / 0.8975 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.185, allocations: 19.98 kB / 0.8976 GB, free: 66.63 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.886e-05/0.1851, allocations: 43.86 kB / 0.8976 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.112e-05/0.1852, allocations: 8.281 kB / 0.8976 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.838e-05/0.1852, allocations: 15.92 kB / 0.8976 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.004e-05/0.1853, allocations: 23.84 kB / 0.8977 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.1853, allocations: 8 kB / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.367e-06/0.1853, allocations: 0 / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.1853, allocations: 15.92 kB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.1854, allocations: 15.88 kB / 0.8977 GB, free: 66.5 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.279e-05/0.1855, allocations: 47.78 kB / 0.8977 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1855, allocations: 0 / 0.8977 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.1855, allocations: 0 / 0.8977 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.1855, allocations: 0 / 0.8977 GB, free: 66.45 MB / 0.6042 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.0004331/0.1859, allocations: 367.4 kB / 0.8981 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.186, allocations: 8.031 kB / 0.8981 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.947e-05/0.186, allocations: 42.73 kB / 0.8981 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.329e-05/0.186, allocations: 0.9375 kB / 0.8981 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.47e-05/0.1861, allocations: 168.3 kB / 0.8983 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.477e-06/0.1861, allocations: 384 / 0.8983 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-06/0.1861, allocations: 4.375 kB / 0.8983 GB, free: 65.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.1863, allocations: 78.16 kB / 0.8984 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1863, allocations: 3.938 kB / 0.8984 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.1863, allocations: 4 kB / 0.8984 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1863, allocations: 0 / 0.8984 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.1865, allocations: 55.95 kB / 0.8984 GB, free: 65.63 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002961/0.1868, allocations: 276.8 kB / 0.8987 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.187, allocations: 66.48 kB / 0.8988 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.587e-05/0.1871, allocations: 36.97 kB / 0.8988 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.1871, allocations: 7.984 kB / 0.8988 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.1873, allocations: 79.36 kB / 0.8989 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.1873, allocations: 11.94 kB / 0.8989 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0003433/0.1876, allocations: 133.5 kB / 0.899 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.1877, allocations: 63.34 kB / 0.8991 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.979e-05/0.1877, allocations: 105.8 kB / 0.8992 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.1878, allocations: 33.7 kB / 0.8992 GB, free: 64.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.318e-05/0.1878, allocations: 80.14 kB / 0.8993 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.1878, allocations: 27.8 kB / 0.8993 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.1878, allocations: 17.72 kB / 0.8993 GB, free: 64.59 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.301e-05/0.1879, allocations: 318.8 kB / 0.8996 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.837e-05/0.188, allocations: 35.98 kB / 0.8997 GB, free: 64.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.999e-05/0.1881, allocations: 56.27 kB / 0.8997 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.1882, allocations: 104.2 kB / 0.8998 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1883, allocations: 4 kB / 0.8998 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000215/0.1885, allocations: 129.6 kB / 0.9 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.1885, allocations: 4 kB / 0.9 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1885, allocations: 7.938 kB / 0.9 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1885, allocations: 0 / 0.9 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.063e-05/0.1886, allocations: 24.11 kB / 0.9 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1886, allocations: 3.938 kB / 0.9 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.771e-05/0.1887, allocations: 8 kB / 0.9 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1887, allocations: 8 kB / 0.9 GB, free: 63.86 MB / 0.6042 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 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/0.1888, allocations: 121.8 kB / 0.9001 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.1888, allocations: 7.906 kB / 0.9001 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.189, allocations: 114 kB / 0.9002 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.189, allocations: 3.938 kB / 0.9002 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.189, allocations: 4 kB / 0.9002 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1891, allocations: 0 / 0.9002 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.1894, allocations: 370.4 kB / 0.9006 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1894, allocations: 0 / 0.9006 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.73e-05/0.1895, allocations: 15.98 kB / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1895, allocations: 0 / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.1895, allocations: 0 / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1895, allocations: 0 / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1895, allocations: 15.92 kB / 0.9006 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.1897, allocations: 203.4 kB / 0.9008 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.1898, allocations: 77.11 kB / 0.9009 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.1898, allocations: 15.92 kB / 0.9009 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.062e-05/0.1899, allocations: 12 kB / 0.9009 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.1899, allocations: 7.922 kB / 0.9009 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.19, allocations: 4 kB / 0.9009 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.633e-05/0.19, allocations: 87.52 kB / 0.901 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.19, allocations: 0 / 0.901 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002075/0.1902, allocations: 16 kB / 0.901 GB, free: 62.7 MB / 0.6042 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 (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.0004323/0.1906, allocations: 0.7397 MB / 0.9018 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000218/0.1909, allocations: 83.89 kB / 0.9018 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1909, allocations: 0 / 0.9018 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.191, allocations: 36.84 kB / 0.9019 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1912, allocations: 15.94 kB / 0.9019 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1924, allocations: 1.446 MB / 0.9033 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.147e-05/0.1925, allocations: 0.6872 MB / 0.904 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.765e-05/0.1926, allocations: 4 kB / 0.904 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.1926, allocations: 15.42 kB / 0.904 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of SimCode: time 2.71e-07/0.1926, allocations: 7.938 kB / 0.904 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009878/0.2025, allocations: 1.384 MB / 0.9053 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.2027, allocations: 221.8 kB / 0.9056 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.471/1.674, allocations: 0 / 0.9056 GB, free: 58.04 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)