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.00166/0.00166, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.002528/0.002528, allocations: 212.7 kB / 23.04 MB, free: 5.074 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.588/1.588, allocations: 230.6 MB / 256.8 MB, free: 8.062 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.846/2.846, allocations: 476.7 MB / 0.7715 GB, free: 4.324 MB / 0.6231 GB " [Timeout remaining time 176] 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.002153/0.002153, allocations: 62.66 kB / 1.118 GB, free: 39.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3384, allocations: 170 MB / 1.284 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002158/0.3405, allocations: 0.674 MB / 1.285 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001615/0.3422, allocations: 1.114 MB / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.91e-05/0.3422, allocations: 0 / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.3422, allocations: 7.938 kB / 1.286 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.166e-05/0.3423, allocations: 11.92 kB / 1.286 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.3426, allocations: 47.83 kB / 1.286 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.3427, allocations: 47.84 kB / 1.286 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.3428, allocations: 11.98 kB / 1.286 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.762e-05/0.3429, allocations: 23.94 kB / 1.286 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.153e-05/0.343, allocations: 19.91 kB / 1.286 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.343, allocations: 4 kB / 1.286 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.773e-05/0.3431, allocations: 31.91 kB / 1.286 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.3431, allocations: 11.98 kB / 1.286 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.3432, allocations: 19.88 kB / 1.286 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.3433, allocations: 67.34 kB / 1.286 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3433, allocations: 0 / 1.286 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3433, allocations: 0 / 1.286 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.3433, allocations: 0 / 1.286 GB, free: 9.559 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.0006277/0.344, allocations: 294.1 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.344, allocations: 12.03 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.624e-05/0.344, allocations: 4.188 kB / 1.286 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.3441, allocations: 38.75 kB / 1.286 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.457e-05/0.3441, allocations: 8.875 kB / 1.287 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.3443, allocations: 110.5 kB / 1.287 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3443, allocations: 4.375 kB / 1.287 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.3443, allocations: 4.375 kB / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.3446, allocations: 69.97 kB / 1.287 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3446, allocations: 0 / 1.287 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3446, allocations: 4 kB / 1.287 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3446, allocations: 0 / 1.287 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002021/0.3448, allocations: 55.81 kB / 1.287 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004944/0.3453, allocations: 259.8 kB / 1.287 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.3455, allocations: 50.55 kB / 1.287 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.3456, allocations: 32.97 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3456, allocations: 0 / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.3459, allocations: 79.31 kB / 1.287 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.3459, allocations: 0 / 1.287 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.3463, allocations: 129.6 kB / 1.287 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.3464, allocations: 51.41 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3465, allocations: 109.8 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.3465, allocations: 25.7 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.3466, allocations: 84.14 kB / 1.288 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.3466, allocations: 19.83 kB / 1.288 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.3466, allocations: 25.72 kB / 1.288 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3468, allocations: 318.8 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.3469, allocations: 31.92 kB / 1.288 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.347, allocations: 60.27 kB / 1.288 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3472, allocations: 96.17 kB / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3472, allocations: 0 / 1.288 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002938/0.3475, allocations: 117.5 kB / 1.288 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3475, allocations: 8.125 kB / 1.288 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3475, allocations: 4 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.3476, allocations: 4 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3477, allocations: 15.98 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3477, allocations: 0 / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.366e-05/0.3478, allocations: 11.98 kB / 1.288 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.3478, allocations: 4 kB / 1.288 GB, free: 7.23 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.0001267/0.3479, allocations: 125.7 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.3479, allocations: 3.953 kB / 1.288 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.3482, allocations: 110 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3482, allocations: 4 kB / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3482, allocations: 0 / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3482, allocations: 0 / 1.288 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.3488, allocations: 333.4 kB / 1.289 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3488, allocations: 0 / 1.289 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.3488, allocations: 19.92 kB / 1.289 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3488, allocations: 0 / 1.289 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.3488, allocations: 192 / 1.289 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3488, allocations: 4 kB / 1.289 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3489, allocations: 8.125 kB / 1.289 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.3492, allocations: 203.8 kB / 1.289 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.186e-05/0.3492, allocations: 7.953 kB / 1.289 GB, free: 6.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.3492, allocations: 4 kB / 1.289 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.3493, allocations: 15.98 kB / 1.289 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.3494, allocations: 7.922 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.3494, allocations: 4 kB / 1.289 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.262e-05/0.3494, allocations: 83.28 kB / 1.289 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3494, allocations: 0 / 1.289 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002702/0.3497, allocations: 12 kB / 1.289 GB, free: 6.219 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.0006975/0.3504, allocations: 0.7398 MB / 1.29 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.3507, allocations: 59.89 kB / 1.29 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.3507, allocations: 8.25 kB / 1.29 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.3508, allocations: 27.97 kB / 1.29 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3511, allocations: 13.66 kB / 1.29 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.353, allocations: 1.42 MB / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.3534, allocations: 0.6807 MB / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.161e-05/0.3534, allocations: 8 kB / 1.292 GB, free: 3.109 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.3535, allocations: 19.56 kB / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/0.3535, allocations: 0 / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02386/0.3774, allocations: 1.983 MB / 1.294 GB, free: 1.266 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.7, allocations: 12.02 kB / 1.294 GB, free: 1.258 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.697036447993014] Failed to read output from testmodel.py, exit status != 0: 12.484459057974163 11.886950094 11.538927328 Calling exit ...