Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002209/0.002209, allocations: 219.2 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.822/2.822, allocations: 476.8 MB / 0.7715 GB, free: 3.902 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 65.98 kB / 1.118 GB, free: 39.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3654, allocations: 170 MB / 1.284 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002374/0.3678, allocations: 0.6599 MB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.3695, allocations: 1.083 MB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.715e-05/0.3695, allocations: 0 / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.3696, allocations: 7.938 kB / 1.286 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.056e-05/0.3697, allocations: 11.91 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.37, allocations: 47.84 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.3701, allocations: 51.78 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3703, allocations: 13.39 kB / 1.286 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.171e-05/0.3703, allocations: 19.92 kB / 1.286 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.996e-05/0.3704, allocations: 23.92 kB / 1.286 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.3704, allocations: 4 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.917e-05/0.3705, allocations: 23.97 kB / 1.286 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.831e-05/0.3705, allocations: 11.98 kB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.886e-05/0.3706, allocations: 19.94 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.3708, allocations: 63.3 kB / 1.286 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3708, allocations: 4 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3708, allocations: 0 / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.3708, allocations: 0 / 1.286 GB, free: 8.598 MB / 0.9825 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.0006619/0.3714, allocations: 290.2 kB / 1.286 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3715, allocations: 12.03 kB / 1.286 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.247e-05/0.3715, allocations: 8.125 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.473e-05/0.3715, allocations: 42.69 kB / 1.286 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.3716, allocations: 8.875 kB / 1.286 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3718, allocations: 110.5 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.3718, allocations: 8.375 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.3718, allocations: 4.375 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.372, allocations: 69.97 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.372, allocations: 0 / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.372, allocations: 0 / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.372, allocations: 4 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.3722, allocations: 47.89 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004647/0.3727, allocations: 247.9 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.3729, allocations: 54.55 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.373, allocations: 28.91 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.373, allocations: 3.984 kB / 1.287 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.3733, allocations: 75.33 kB / 1.287 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.3733, allocations: 4 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004502/0.3737, allocations: 121.6 kB / 1.287 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.3738, allocations: 59.39 kB / 1.287 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.241e-05/0.3739, allocations: 101.9 kB / 1.287 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.3739, allocations: 33.7 kB / 1.287 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/0.3739, allocations: 88.11 kB / 1.287 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.374, allocations: 19.84 kB / 1.287 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.374, allocations: 25.7 kB / 1.287 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3742, allocations: 322.8 kB / 1.288 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3743, allocations: 27.97 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.3744, allocations: 64.2 kB / 1.288 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002149/0.3746, allocations: 84.2 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3746, allocations: 8 kB / 1.288 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003015/0.3749, allocations: 117.5 kB / 1.288 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.3749, allocations: 4 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.375, allocations: 3.984 kB / 1.288 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.375, allocations: 4 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3751, allocations: 15.98 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3751, allocations: 0 / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.046e-05/0.3752, allocations: 12.12 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.3752, allocations: 4.188 kB / 1.288 GB, free: 6.277 MB / 0.9825 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 0.000123/0.3753, allocations: 125.7 kB / 1.288 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.964e-05/0.3753, allocations: 11.89 kB / 1.288 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.3756, allocations: 106 kB / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3756, allocations: 0 / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3756, allocations: 48 / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.3756, allocations: 3.984 kB / 1.288 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005137/0.3762, allocations: 333.5 kB / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3762, allocations: 0 / 1.289 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.657e-05/0.3762, allocations: 11.98 kB / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.3762, allocations: 256 / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.3762, allocations: 0 / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3762, allocations: 7.938 kB / 1.289 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.3763, allocations: 3.938 kB / 1.289 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.3766, allocations: 207.4 kB / 1.289 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.419e-05/0.3766, allocations: 3.938 kB / 1.289 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.3766, allocations: 0 / 1.289 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.3767, allocations: 11.98 kB / 1.289 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.3768, allocations: 11.92 kB / 1.289 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.3768, allocations: 4 kB / 1.289 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.52e-05/0.3769, allocations: 79.28 kB / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3769, allocations: 0 / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002732/0.3771, allocations: 19.95 kB / 1.289 GB, free: 5.27 MB / 0.9825 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.0008797/0.378, allocations: 0.732 MB / 1.29 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002842/0.3783, allocations: 67.89 kB / 1.29 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3783, allocations: 0 / 1.29 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.3784, allocations: 35.91 kB / 1.29 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3787, allocations: 12.19 kB / 1.29 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.3807, allocations: 1.426 MB / 1.291 GB, free: 2.871 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.459e-05/0.3808, allocations: 67.34 kB / 1.291 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.188e-05/0.3809, allocations: 12.08 kB / 1.291 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.013e-05/0.3809, allocations: 15.38 kB / 1.291 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of SimCode: time 5.72e-07/0.3809, allocations: 0 / 1.291 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02453/0.4055, allocations: 2.025 MB / 1.293 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.7, allocations: 13.52 kB / 1.293 GB, free: 0.8906 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.539114839979447] Failed to read output from testmodel.py, exit status != 0: 12.494431122089736 11.893249466 11.519032765 Calling exit ...