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: 116.8 kB / 17.17 MB, free: 5.977 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.002237/0.002237, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.533/1.533, 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 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 3.085/3.085, allocations: 476.7 MB / 0.7678 GB, free: 9.504 MB / 0.6075 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.002046/0.002046, allocations: 67.88 kB / 1.113 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157/1.159, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002268/1.161, allocations: 0.6768 MB / 1.28 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001821/1.163, allocations: 1.115 MB / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.555e-05/1.163, allocations: 0 / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.038e-05/1.163, allocations: 6.062 kB / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.429e-05/1.163, allocations: 5 kB / 1.281 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/1.163, allocations: 48.28 kB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001341/1.164, allocations: 46.81 kB / 1.281 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/1.164, allocations: 8.609 kB / 1.281 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.705e-05/1.164, allocations: 20.69 kB / 1.281 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.141e-05/1.164, allocations: 28.11 kB / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/1.164, allocations: 4.531 kB / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.034e-05/1.164, allocations: 29.44 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.044e-05/1.164, allocations: 12.72 kB / 1.281 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.628e-05/1.164, allocations: 18.75 kB / 1.281 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/1.164, allocations: 72.95 kB / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/1.164, allocations: 0 / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.462e-06/1.164, allocations: 0 / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.683e-06/1.164, allocations: 1.156 kB / 1.281 GB, free: 10.36 MB / 0.9981 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.0007107/1.165, allocations: 375.7 kB / 1.281 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/1.165, allocations: 9.875 kB / 1.281 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.132e-05/1.165, allocations: 192 / 1.281 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/1.165, allocations: 37.92 kB / 1.281 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.733e-05/1.165, allocations: 9.484 kB / 1.281 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/1.165, allocations: 176 kB / 1.282 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/1.165, allocations: 1.438 kB / 1.282 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/1.165, allocations: 3.938 kB / 1.282 GB, free: 9.723 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/1.166, allocations: 67.48 kB / 1.282 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/1.166, allocations: 5.062 kB / 1.282 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/1.166, allocations: 0 / 1.282 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/1.166, allocations: 1.828 kB / 1.282 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002027/1.166, allocations: 47.05 kB / 1.282 GB, free: 9.664 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005165/1.166, allocations: 287.1 kB / 1.282 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/1.166, allocations: 55.47 kB / 1.282 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/1.167, allocations: 27.98 kB / 1.282 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/1.167, allocations: 5.688 kB / 1.282 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/1.167, allocations: 73.48 kB / 1.282 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/1.167, allocations: 0 / 1.282 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0005389/1.167, allocations: 133.9 kB / 1.282 GB, free: 9.203 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/1.167, allocations: 56.88 kB / 1.282 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/1.168, allocations: 105.1 kB / 1.282 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/1.168, allocations: 26.83 kB / 1.282 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/1.168, allocations: 86.61 kB / 1.282 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/1.168, allocations: 16.16 kB / 1.283 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.525e-05/1.168, allocations: 22.53 kB / 1.283 GB, free: 8.887 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001631/1.168, allocations: 326.7 kB / 1.283 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/1.168, allocations: 25.38 kB / 1.283 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/1.168, allocations: 61.91 kB / 1.283 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/1.169, allocations: 94.06 kB / 1.283 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.169, allocations: 1.188 kB / 1.283 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003209/1.169, allocations: 121 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.169, allocations: 6.969 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/1.169, allocations: 1.156 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/1.169, allocations: 1.156 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/1.169, allocations: 17.75 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/1.169, allocations: 1.469 kB / 1.283 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.692e-05/1.169, allocations: 16.25 kB / 1.283 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/1.169, allocations: 7.281 kB / 1.283 GB, free: 8.371 MB / 0.9981 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.0001107/1.169, allocations: 127 kB / 1.283 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/1.169, allocations: 7.219 kB / 1.283 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003276/1.17, allocations: 107.2 kB / 1.283 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/1.17, allocations: 1.219 kB / 1.283 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/1.17, allocations: 0.75 kB / 1.283 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.17, allocations: 0 / 1.283 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005917/1.17, allocations: 360.1 kB / 1.284 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.17, allocations: 1.469 kB / 1.284 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/1.17, allocations: 15.66 kB / 1.284 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/1.17, allocations: 0 / 1.284 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/1.17, allocations: 6.172 kB / 1.284 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/1.17, allocations: 0 / 1.284 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/1.17, allocations: 3.938 kB / 1.284 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/1.171, allocations: 202.4 kB / 1.284 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/1.171, allocations: 92.52 kB / 1.284 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/1.171, allocations: 0.6562 kB / 1.284 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/1.171, allocations: 9.203 kB / 1.284 GB, free: 7.578 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/1.171, allocations: 8.391 kB / 1.284 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/1.171, allocations: 2.438 kB / 1.284 GB, free: 7.574 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.767e-05/1.171, allocations: 85.75 kB / 1.284 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.171, allocations: 0 / 1.284 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002458/1.171, allocations: 20.27 kB / 1.284 GB, free: 7.488 MB / 0.9981 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.0007033/1.172, allocations: 0.731 MB / 1.285 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002822/1.172, allocations: 81.08 kB / 1.285 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/1.172, allocations: 1.625 kB / 1.285 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/1.172, allocations: 32.31 kB / 1.285 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/1.173, allocations: 11.16 kB / 1.285 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/1.174, allocations: 1.416 MB / 1.286 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/1.175, allocations: 0.6905 MB / 1.287 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.78e-05/1.175, allocations: 4.219 kB / 1.287 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/1.175, allocations: 17.2 kB / 1.287 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of SimCode: time 3.2e-07/1.175, allocations: 0 / 1.287 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/1.199, allocations: 1.869 MB / 1.289 GB, free: 4.336 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.368/9.567, allocations: 15.47 kB / 1.289 GB, free: 4.328 MB / 0.9981 GB " [Timeout remaining time 290] (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: 16.1696099290275] Failed to read output from testmodel.py, exit status != 0: 9.695157190028112 9.711102048 8.543726926 Calling exit ...