Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001376/0.001376, allocations: 101.5 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.001497/0.001497, allocations: 217.5 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.304/3.304, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_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.002872/0.002872, allocations: 66.56 kB / 1.171 GB, free: 19.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4165, allocations: 179 MB / 1.345 GB, free: 0.5234 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002082/0.4186, allocations: 0.6841 MB / 1.346 GB, free: 15.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.4201, allocations: 1.116 MB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.44e-05/0.4202, allocations: 0 / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.818e-05/0.4202, allocations: 3.938 kB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.866e-05/0.4203, allocations: 7.938 kB / 1.347 GB, free: 14.7 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.4206, allocations: 47.81 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.4207, allocations: 47.92 kB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.645e-05/0.4208, allocations: 11.98 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.009e-05/0.4209, allocations: 23.86 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.844e-05/0.4209, allocations: 27.91 kB / 1.347 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.4209, allocations: 4 kB / 1.347 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.984e-05/0.421, allocations: 23.92 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.297e-05/0.421, allocations: 15.92 kB / 1.347 GB, free: 14.5 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.645e-05/0.4211, allocations: 19.92 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.4212, allocations: 67.98 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4212, allocations: 4 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4212, allocations: 0 / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.4212, allocations: 4 kB / 1.347 GB, free: 14.41 MB / 1.045 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.0007084/0.4219, allocations: 290.2 kB / 1.348 GB, free: 14.09 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.422, allocations: 12.03 kB / 1.348 GB, free: 14.08 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.369e-05/0.422, allocations: 192 / 1.348 GB, free: 14.08 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.422, allocations: 30.75 kB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4222, allocations: 12.92 kB / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.4223, allocations: 122.4 kB / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.4223, allocations: 384 / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.4223, allocations: 4.375 kB / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.4226, allocations: 69.97 kB / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.4226, allocations: 0 / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.4226, allocations: 0 / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.4226, allocations: 0 / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002051/0.4228, allocations: 43.95 kB / 1.348 GB, free: 13.76 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.4234, allocations: 255.8 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.4235, allocations: 50.55 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.4237, allocations: 32.97 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.4237, allocations: 4.062 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003122/0.424, allocations: 75.38 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.424, allocations: 0 / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004938/0.4245, allocations: 129.5 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.4246, allocations: 55.34 kB / 1.349 GB, free: 13.09 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.4247, allocations: 109.8 kB / 1.349 GB, free: 12.97 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.4247, allocations: 33.7 kB / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.707e-05/0.4248, allocations: 80.14 kB / 1.349 GB, free: 12.85 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.4248, allocations: 31.77 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.4249, allocations: 21.72 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.425, allocations: 322.8 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.4252, allocations: 23.98 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.4253, allocations: 64.2 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.4256, allocations: 92.38 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.4256, allocations: 4 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002999/0.4259, allocations: 113.5 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.4259, allocations: 8 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4259, allocations: 0 / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4259, allocations: 4 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.426, allocations: 19.92 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.426, allocations: 4.125 kB / 1.349 GB, free: 12.1 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.264e-05/0.4261, allocations: 11.94 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.4261, allocations: 4 kB / 1.349 GB, free: 12.09 MB / 1.045 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.0001181/0.4262, allocations: 121.8 kB / 1.35 GB, free: 11.96 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.4263, allocations: 4 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003176/0.4266, allocations: 109.9 kB / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.4266, allocations: 0 / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4266, allocations: 8 kB / 1.35 GB, free: 11.83 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.4266, allocations: 0 / 1.35 GB, free: 11.83 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/0.4271, allocations: 337.8 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4271, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.4272, allocations: 11.98 kB / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4272, allocations: 0 / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.4272, allocations: 0 / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4272, allocations: 80 / 1.35 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4272, allocations: 15.92 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.4275, allocations: 187.5 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.274e-05/0.4275, allocations: 15.83 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.4275, allocations: 0 / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.4276, allocations: 12.23 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.4277, allocations: 15.92 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.4277, allocations: 11.94 kB / 1.35 GB, free: 11.17 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.72e-05/0.4277, allocations: 79.28 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4277, allocations: 0 / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002552/0.428, allocations: 16 kB / 1.35 GB, free: 11.08 MB / 1.045 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.0007014/0.4287, allocations: 0.7319 MB / 1.351 GB, free: 10.32 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003054/0.429, allocations: 67.89 kB / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.429, allocations: 0 / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.4291, allocations: 35.91 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.4294, allocations: 13.73 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.4312, allocations: 1.427 MB / 1.353 GB, free: 8.676 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.4316, allocations: 0.6846 MB / 1.353 GB, free: 7.965 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.508e-05/0.4316, allocations: 4 kB / 1.353 GB, free: 7.961 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.4316, allocations: 19.42 kB / 1.353 GB, free: 7.941 MB / 1.045 GB Notification: Performance of SimCode: time 8.01e-07/0.4316, allocations: 0 / 1.353 GB, free: 7.941 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.454, allocations: 1.979 MB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 9.109 kB / 1.355 GB, free: 6.102 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.722566035052296] Failed to read output from testmodel.py, exit status != 0: 11.924992206972092 11.953246893 11.526641071 Calling exit ...