Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ZeroOrderHold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 91.84 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.001193/0.001194, 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 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.556/2.556, allocations: 390.4 MB / 0.6655 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003568, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8253/0.8257, allocations: 142.3 MB / 0.9538 GB, free: 8.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009389/0.8267, allocations: 395.2 kB / 0.9542 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.8281, allocations: 1.046 MB / 0.9552 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.8282, allocations: 1.312 kB / 0.9552 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.634e-05/0.8282, allocations: 0 / 0.9552 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.77e-05/0.8283, allocations: 4.969 kB / 0.9553 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.8286, allocations: 37.83 kB / 0.9553 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.345e-05/0.8287, allocations: 44.48 kB / 0.9553 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.8288, allocations: 16.78 kB / 0.9553 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.204e-05/0.8289, allocations: 15.84 kB / 0.9554 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.829, allocations: 25.92 kB / 0.9554 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.829, allocations: 2.188 kB / 0.9554 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.8291, allocations: 15.55 kB / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.905e-05/0.8291, allocations: 7 kB / 0.9554 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.142e-05/0.8291, allocations: 28.86 kB / 0.9554 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.8292, allocations: 33.58 kB / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.8293, allocations: 0 / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.844e-06/0.8293, allocations: 0 / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.8293, allocations: 1 kB / 0.9555 GB, free: 6.883 MB / 0.7169 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.0004999/0.8298, allocations: 373.7 kB / 0.9558 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.8298, allocations: 17.59 kB / 0.9558 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.8299, allocations: 39.64 kB / 0.9559 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.8299, allocations: 10.42 kB / 0.9559 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.46e-05/0.83, allocations: 161.5 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.83, allocations: 6 kB / 0.9561 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.392e-05/0.8301, allocations: 7.188 kB / 0.9561 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.8303, allocations: 68.84 kB / 0.9561 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.8303, allocations: 4 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.8303, allocations: 1.062 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.8303, allocations: 1.031 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.8305, allocations: 60.34 kB / 0.9562 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004338/0.8309, allocations: 276 kB / 0.9564 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.8311, allocations: 63.73 kB / 0.9565 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.8312, allocations: 35.11 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.8313, allocations: 1.438 kB / 0.9565 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.8315, allocations: 98.42 kB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.8315, allocations: 0 / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004722/0.832, allocations: 140.6 kB / 0.9568 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.832, allocations: 52.56 kB / 0.9568 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.657e-05/0.8321, allocations: 105 kB / 0.9569 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.8321, allocations: 30.8 kB / 0.957 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.922e-05/0.8322, allocations: 89.3 kB / 0.957 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.8322, allocations: 14.16 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.093e-06/0.8322, allocations: 5.156 kB / 0.9571 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.8323, allocations: 316 kB / 0.9574 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.8324, allocations: 35.83 kB / 0.9574 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.8325, allocations: 62.86 kB / 0.9575 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.8327, allocations: 42.25 kB / 0.9575 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.8327, allocations: 0 / 0.9575 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002904/0.833, allocations: 127.5 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.833, allocations: 4.969 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.833, allocations: 5.609 kB / 0.9576 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.833, allocations: 2.375 kB / 0.9576 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.8332, allocations: 18.45 kB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.8332, allocations: 3.938 kB / 0.9576 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.8333, allocations: 21.58 kB / 0.9577 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.8333, allocations: 7.953 kB / 0.9577 GB, free: 4.812 MB / 0.7169 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.862e-05/0.8334, allocations: 118.8 kB / 0.9578 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.111e-05/0.8334, allocations: 5.312 kB / 0.9578 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.8337, allocations: 124.1 kB / 0.9579 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.8337, allocations: 5.109 kB / 0.9579 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.8337, allocations: 1.125 kB / 0.9579 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.8337, allocations: 48 / 0.9579 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004293/0.8342, allocations: 379.8 kB / 0.9583 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.8342, allocations: 1.75 kB / 0.9583 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.982e-05/0.8342, allocations: 9.062 kB / 0.9583 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.8343, allocations: 5.391 kB / 0.9583 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.8343, allocations: 7.984 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.8343, allocations: 1.531 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.8343, allocations: 0 / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.8345, allocations: 199.8 kB / 0.9585 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.663e-05/0.8346, allocations: 86.78 kB / 0.9586 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.8346, allocations: 10.02 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.8347, allocations: 21.02 kB / 0.9586 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.844e-05/0.8348, allocations: 2.094 kB / 0.9586 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.8348, allocations: 2.281 kB / 0.9586 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.026e-05/0.8348, allocations: 90.83 kB / 0.9587 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8348, allocations: 0 / 0.9587 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002458/0.8351, allocations: 11.94 kB / 0.9587 GB, free: 3.859 MB / 0.7169 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 (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.0004689/0.8356, allocations: 0.7449 MB / 0.9594 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.8358, allocations: 81.41 kB / 0.9595 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.8358, allocations: 1.312 kB / 0.9595 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.8359, allocations: 35.92 kB / 0.9596 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.8362, allocations: 15.84 kB / 0.9596 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008855/0.8371, allocations: 0.5155 MB / 0.9601 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.8372, allocations: 0.6883 MB / 0.9607 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.448e-05/0.8373, allocations: 4.469 kB / 0.9607 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.8373, allocations: 18.86 kB / 0.9608 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8373, allocations: 0 / 0.9608 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01237/0.8497, allocations: 1.529 MB / 0.9623 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.8499, allocations: 204.7 kB / 0.9625 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.536, allocations: 0 / 0.9625 GB, free: 0.9727 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat does not exist to compare? outputFormat=mat