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.001102/0.001102, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001282/0.001282, allocations: 177.3 kB / 15.95 MB, free: 216 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.39/1.39, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.489/2.489, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003613, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8388/0.8392, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008622/0.8401, allocations: 392.1 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.8413, allocations: 1.044 MB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.669e-05/0.8414, allocations: 1.312 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.676e-05/0.8414, allocations: 0 / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.199e-05/0.8414, allocations: 4.812 kB / 0.955 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.8417, allocations: 42.2 kB / 0.955 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.192e-05/0.8418, allocations: 29.73 kB / 0.9551 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.567e-05/0.8419, allocations: 8 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.899e-05/0.8419, allocations: 15.67 kB / 0.9551 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.683e-05/0.842, allocations: 18.95 kB / 0.9551 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.842, allocations: 1.375 kB / 0.9551 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.784e-05/0.8421, allocations: 16.3 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.882e-05/0.8421, allocations: 17.19 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.8421, allocations: 29.92 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.216e-05/0.8422, allocations: 37.55 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.8423, allocations: 0 / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8423, allocations: 0 / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.8423, allocations: 0 / 0.9552 GB, free: 6.789 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.0004948/0.8428, allocations: 366.9 kB / 0.9556 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.8428, allocations: 12.72 kB / 0.9556 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.34e-05/0.8429, allocations: 39.94 kB / 0.9556 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.8429, allocations: 10.58 kB / 0.9556 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.637e-05/0.843, allocations: 177.2 kB / 0.9558 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.843, allocations: 6.469 kB / 0.9558 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.843, allocations: 2.375 kB / 0.9558 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.8432, allocations: 68.25 kB / 0.9559 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.8432, allocations: 5.375 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.8433, allocations: 0 / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.8433, allocations: 1.438 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.8435, allocations: 57.16 kB / 0.9559 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.8439, allocations: 279.6 kB / 0.9562 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.844, allocations: 62.67 kB / 0.9562 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.8441, allocations: 1.594 kB / 0.9562 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.8443, allocations: 85.97 kB / 0.9563 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.8443, allocations: 0 / 0.9563 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004548/0.8447, allocations: 148.3 kB / 0.9565 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.8448, allocations: 52.38 kB / 0.9565 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.8448, allocations: 105.4 kB / 0.9566 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.8449, allocations: 26.83 kB / 0.9566 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.8449, allocations: 89.05 kB / 0.9567 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.8449, allocations: 18.5 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/0.8449, allocations: 1.062 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.845, allocations: 323.9 kB / 0.9571 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.8451, allocations: 27.27 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.8452, allocations: 63.45 kB / 0.9571 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.8453, allocations: 50.3 kB / 0.9572 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.8453, allocations: 0 / 0.9572 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002754/0.8456, allocations: 123.3 kB / 0.9573 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.8456, allocations: 5.406 kB / 0.9573 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.8457, allocations: 1.156 kB / 0.9573 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.8457, allocations: 5.984 kB / 0.9573 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.8458, allocations: 22.86 kB / 0.9573 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.8458, allocations: 9.281 kB / 0.9574 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.16e-05/0.8459, allocations: 15.73 kB / 0.9574 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.8459, allocations: 3.312 kB / 0.9574 GB, free: 4.742 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.06e-05/0.846, allocations: 115.9 kB / 0.9575 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.846, allocations: 2.125 kB / 0.9575 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.8463, allocations: 128.4 kB / 0.9576 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.8463, allocations: 5.422 kB / 0.9576 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8463, allocations: 3.938 kB / 0.9576 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.8463, allocations: 3.938 kB / 0.9576 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.8467, allocations: 377.7 kB / 0.958 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.8467, allocations: 0 / 0.958 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.277e-05/0.8468, allocations: 9.625 kB / 0.958 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.8468, allocations: 5.172 kB / 0.958 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.8468, allocations: 9.172 kB / 0.958 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8468, allocations: 0 / 0.958 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.8468, allocations: 0 / 0.958 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.8471, allocations: 205.4 kB / 0.9582 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.79e-05/0.8471, allocations: 87.59 kB / 0.9583 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.8472, allocations: 3.953 kB / 0.9583 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.466e-05/0.8473, allocations: 17.11 kB / 0.9583 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.8473, allocations: 3.312 kB / 0.9583 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.8473, allocations: 3.938 kB / 0.9583 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.356e-05/0.8474, allocations: 89.02 kB / 0.9584 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8474, allocations: 0 / 0.9584 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002444/0.8476, allocations: 14.53 kB / 0.9584 GB, free: 3.789 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.000483/0.8481, allocations: 0.7354 MB / 0.9591 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00026/0.8484, allocations: 89.42 kB / 0.9592 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.8484, allocations: 0 / 0.9592 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.8485, allocations: 37.27 kB / 0.9592 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.8487, allocations: 16.03 kB / 0.9593 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006287/0.8494, allocations: 0.9597 MB / 0.9602 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.8495, allocations: 0.6873 MB / 0.9609 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.354e-05/0.8496, allocations: 3.719 kB / 0.9609 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.8496, allocations: 23.2 kB / 0.9609 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.8496, allocations: 0 / 0.9609 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01296/0.8626, allocations: 1.514 MB / 0.9624 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/0.8628, allocations: 197 kB / 0.9626 GB, free: 380 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.627/2.489, allocations: 4 kB / 0.9626 GB, free: 376 kB / 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