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.001331/0.001331, allocations: 116.8 kB / 17.16 MB, free: 6.023 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.001458/0.001458, allocations: 210.3 kB / 20.13 MB, free: 3.078 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.538/1.538, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.007/3.007, allocations: 0.5003 GB / 0.8026 GB, free: 6.723 MB / 0.6387 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.002203/0.002203, allocations: 71.89 kB / 1.165 GB, free: 500 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.044/1.047, allocations: 179 MB / 1.34 GB, free: 16.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001851/1.048, allocations: 0.6787 MB / 1.341 GB, free: 15.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00119/1.05, allocations: 1.106 MB / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/1.05, allocations: 0 / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/1.05, allocations: 4.547 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.088e-05/1.05, allocations: 9.703 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000262/1.05, allocations: 50.86 kB / 1.342 GB, free: 14.97 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/1.05, allocations: 44.44 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.821e-05/1.05, allocations: 12.45 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.572e-05/1.05, allocations: 24.55 kB / 1.342 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.369e-05/1.05, allocations: 24.75 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/1.05, allocations: 4.5 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.561e-05/1.05, allocations: 20.75 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/1.05, allocations: 16.52 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/1.05, allocations: 19.62 kB / 1.342 GB, free: 14.9 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001821/1.051, allocations: 72.25 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.051, allocations: 1 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.613e-06/1.051, allocations: 0 / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.351e-06/1.051, allocations: 0 / 1.342 GB, free: 14.87 MB / 1.061 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.0005953/1.051, allocations: 371.1 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/1.051, allocations: 10.92 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.443e-05/1.051, allocations: 5.25 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.378e-05/1.051, allocations: 32.72 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.994e-05/1.051, allocations: 5.672 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.501e-05/1.052, allocations: 171.2 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/1.052, allocations: 6.562 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/1.052, allocations: 8.188 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/1.052, allocations: 71.47 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.052, allocations: 0 / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/1.052, allocations: 1.984 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/1.052, allocations: 0 / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/1.052, allocations: 48.5 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/1.052, allocations: 286 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/1.053, allocations: 51.33 kB / 1.343 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/1.053, allocations: 32.81 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/1.053, allocations: 5.953 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/1.053, allocations: 73.03 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/1.053, allocations: 3.938 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004303/1.053, allocations: 130.6 kB / 1.343 GB, free: 13.72 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/1.053, allocations: 56.16 kB / 1.343 GB, free: 13.65 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.187e-05/1.053, allocations: 109.1 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/1.053, allocations: 26.8 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.621e-05/1.053, allocations: 86.77 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/1.053, allocations: 21.84 kB / 1.344 GB, free: 13.41 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/1.054, allocations: 24.27 kB / 1.344 GB, free: 13.39 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.584e-05/1.054, allocations: 320.3 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/1.054, allocations: 32 kB / 1.344 GB, free: 13.06 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/1.054, allocations: 57.55 kB / 1.344 GB, free: 13.02 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/1.054, allocations: 99.23 kB / 1.344 GB, free: 12.95 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.054, allocations: 0 / 1.344 GB, free: 12.95 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002775/1.054, allocations: 110.2 kB / 1.344 GB, free: 12.9 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/1.054, allocations: 5.531 kB / 1.344 GB, free: 12.9 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/1.054, allocations: 2.469 kB / 1.344 GB, free: 12.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.485e-05/1.054, allocations: 5.812 kB / 1.344 GB, free: 12.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/1.054, allocations: 20.89 kB / 1.344 GB, free: 12.89 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/1.054, allocations: 1.781 kB / 1.344 GB, free: 12.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.463e-05/1.055, allocations: 18.41 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/1.055, allocations: 3.594 kB / 1.344 GB, free: 12.88 MB / 1.061 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 6.218e-05/1.055, allocations: 120.4 kB / 1.344 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/1.055, allocations: 1.781 kB / 1.344 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002912/1.055, allocations: 111.6 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/1.055, allocations: 1.891 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.055, allocations: 0 / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/1.055, allocations: 0.6562 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/1.055, allocations: 364.8 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/1.055, allocations: 0 / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.657e-05/1.055, allocations: 14.11 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/1.055, allocations: 1.375 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/1.055, allocations: 6.266 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.055, allocations: 0 / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.055, allocations: 12.38 kB / 1.345 GB, free: 12.35 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/1.056, allocations: 186.5 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/1.056, allocations: 83.19 kB / 1.345 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/1.056, allocations: 10.22 kB / 1.345 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/1.056, allocations: 8.922 kB / 1.345 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/1.056, allocations: 16.67 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/1.056, allocations: 2.75 kB / 1.345 GB, free: 12.09 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.702e-05/1.056, allocations: 89.81 kB / 1.345 GB, free: 12.01 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.056, allocations: 0 / 1.345 GB, free: 12.01 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002549/1.056, allocations: 11.61 kB / 1.345 GB, free: 12.01 MB / 1.061 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.0004593/1.057, allocations: 0.7411 MB / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002725/1.057, allocations: 65.03 kB / 1.346 GB, free: 11.31 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/1.057, allocations: 256 / 1.346 GB, free: 11.31 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/1.057, allocations: 45.48 kB / 1.346 GB, free: 11.29 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/1.057, allocations: 9.906 kB / 1.346 GB, free: 11.29 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/1.059, allocations: 1.424 MB / 1.348 GB, free: 9.977 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/1.059, allocations: 0.6826 MB / 1.348 GB, free: 9.281 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.355e-05/1.059, allocations: 8.609 kB / 1.348 GB, free: 9.277 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/1.059, allocations: 17.25 kB / 1.348 GB, free: 9.266 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/1.059, allocations: 0 / 1.348 GB, free: 9.266 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/1.077, allocations: 1.867 MB / 1.35 GB, free: 8.855 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.457/9.535, allocations: 11.42 kB / 1.35 GB, free: 8.852 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.168021596968174] Failed to read output from testmodel.py, exit status != 0: 9.658357740030624 9.670967153 8.617437216 Calling exit ...