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.001752/0.001752, allocations: 97.88 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.002384/0.002384, allocations: 217.8 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.27/3.27, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 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.001958/0.001958, allocations: 62.89 kB / 1.17 GB, free: 19.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3968, allocations: 179 MB / 1.345 GB, free: 8 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002126/0.3989, allocations: 0.6697 MB / 1.346 GB, free: 15.33 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.4006, allocations: 1.089 MB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.279e-05/0.4006, allocations: 7.938 kB / 1.347 GB, free: 14.22 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.4007, allocations: 0 / 1.347 GB, free: 14.22 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.931e-05/0.4007, allocations: 7.875 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.401, allocations: 43.89 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.4012, allocations: 51.84 kB / 1.347 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.233e-05/0.4012, allocations: 8 kB / 1.347 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.296e-05/0.4013, allocations: 23.91 kB / 1.347 GB, free: 14.09 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.903e-05/0.4014, allocations: 31.84 kB / 1.347 GB, free: 14.06 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.4014, allocations: 4 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.017e-05/0.4015, allocations: 16 kB / 1.347 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.4015, allocations: 19.92 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.751e-05/0.4016, allocations: 23.84 kB / 1.347 GB, free: 14 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.4017, allocations: 68 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4017, allocations: 0 / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4017, allocations: 0 / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.4017, allocations: 0 / 1.347 GB, free: 13.93 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.0006023/0.4023, allocations: 298.1 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4024, allocations: 8.031 kB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.819e-05/0.4024, allocations: 192 / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.4024, allocations: 42.75 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.902e-05/0.4025, allocations: 4.938 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.784e-05/0.4026, allocations: 110.4 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.4026, allocations: 4.375 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.4026, allocations: 4.375 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.4028, allocations: 69.91 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.4029, allocations: 0 / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.4029, allocations: 4 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.4029, allocations: 4 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.4031, allocations: 43.95 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004368/0.4035, allocations: 239.9 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.4037, allocations: 54.5 kB / 1.348 GB, free: 12.94 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.4038, allocations: 28.95 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.4038, allocations: 0 / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.404, allocations: 79.44 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 3.156e-06/0.4041, allocations: 7.984 kB / 1.348 GB, free: 12.81 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.00042/0.4045, allocations: 129.5 kB / 1.348 GB, free: 12.68 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.4045, allocations: 55.41 kB / 1.348 GB, free: 12.61 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.889e-05/0.4046, allocations: 105.8 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.4046, allocations: 25.7 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.4047, allocations: 84.14 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.4047, allocations: 27.78 kB / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.4048, allocations: 21.72 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4049, allocations: 326.8 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.741e-05/0.405, allocations: 23.98 kB / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.4051, allocations: 68.14 kB / 1.349 GB, free: 11.89 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.4053, allocations: 88.19 kB / 1.349 GB, free: 11.79 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4053, allocations: 4 kB / 1.349 GB, free: 11.79 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002832/0.4056, allocations: 113.5 kB / 1.349 GB, free: 11.67 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4056, allocations: 4 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.4056, allocations: 4 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.4057, allocations: 0 / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.4058, allocations: 24.17 kB / 1.349 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4058, allocations: 4 kB / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.473e-05/0.4059, allocations: 20.06 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.4059, allocations: 4 kB / 1.349 GB, free: 11.61 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 9.792e-05/0.406, allocations: 119.7 kB / 1.349 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.406, allocations: 4 kB / 1.349 GB, free: 11.48 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.4063, allocations: 109.9 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.4063, allocations: 3.984 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.4063, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.4063, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004648/0.4068, allocations: 333.9 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4068, allocations: 0 / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.4068, allocations: 11.94 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4068, allocations: 0 / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.4069, allocations: 7.984 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4069, allocations: 0 / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4069, allocations: 3.938 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.4072, allocations: 195.6 kB / 1.35 GB, free: 10.76 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.4072, allocations: 11.88 kB / 1.35 GB, free: 10.75 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.4072, allocations: 8 kB / 1.35 GB, free: 10.74 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.997e-05/0.4073, allocations: 7.984 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.176e-05/0.4073, allocations: 3.938 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.4073, allocations: 4 kB / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.4074, allocations: 87.27 kB / 1.35 GB, free: 10.64 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4074, allocations: 0 / 1.35 GB, free: 10.64 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000248/0.4076, allocations: 12 kB / 1.35 GB, free: 10.62 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.0006481/0.4083, allocations: 0.7435 MB / 1.351 GB, free: 9.855 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002626/0.4086, allocations: 71.88 kB / 1.351 GB, free: 9.785 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4086, allocations: 0 / 1.351 GB, free: 9.785 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.4087, allocations: 27.98 kB / 1.351 GB, free: 9.758 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.4089, allocations: 18.19 kB / 1.351 GB, free: 9.742 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.4106, allocations: 1.427 MB / 1.352 GB, free: 8.211 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.521e-05/0.4107, allocations: 71.33 kB / 1.353 GB, free: 8.121 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.719e-05/0.4107, allocations: 7.984 kB / 1.353 GB, free: 8.113 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.207e-05/0.4108, allocations: 15.44 kB / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of SimCode: time 2.61e-07/0.4108, allocations: 0 / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.4332, allocations: 2.029 MB / 1.355 GB, free: 6.219 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.93, allocations: 8 kB / 1.355 GB, free: 6.211 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.857482868013903] Failed to read output from testmodel.py, exit status != 0: 12.095780074014328 12.124365587 11.717696958 Calling exit ...