Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001679/0.001679, allocations: 116.1 kB / 17.17 MB, free: 6 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.002101/0.002101, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.632/1.632, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.964/2.964, allocations: 0.49 GB / 0.7923 GB, free: 1.312 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_12_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.002185/0.002185, allocations: 78.08 kB / 1.15 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038/1.04, allocations: 176.1 MB / 1.321 GB, free: 24.82 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001748/1.042, allocations: 0.681 MB / 1.322 GB, free: 24.39 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001062/1.043, allocations: 1.108 MB / 1.323 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.629e-05/1.043, allocations: 0 / 1.323 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/1.043, allocations: 3.938 kB / 1.323 GB, free: 23.58 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.159e-05/1.043, allocations: 3.938 kB / 1.323 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/1.043, allocations: 59.62 kB / 1.323 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.628e-05/1.044, allocations: 46.78 kB / 1.323 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.275e-05/1.044, allocations: 2.844 kB / 1.323 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.153e-05/1.044, allocations: 31.38 kB / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.613e-05/1.044, allocations: 19.98 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/1.044, allocations: 5.969 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.314e-05/1.044, allocations: 19.3 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.65e-05/1.044, allocations: 13.98 kB / 1.323 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/1.044, allocations: 25.09 kB / 1.323 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000128/1.044, allocations: 67.72 kB / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.044, allocations: 3.938 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.363e-06/1.044, allocations: 6.812 kB / 1.324 GB, free: 23.43 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.849e-06/1.044, allocations: 0 / 1.324 GB, free: 23.43 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.0005416/1.045, allocations: 365.3 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/1.045, allocations: 14.55 kB / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.923e-05/1.045, allocations: 192 / 1.324 GB, free: 23.05 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.23e-05/1.045, allocations: 37.31 kB / 1.324 GB, free: 23.01 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.331e-05/1.045, allocations: 11.7 kB / 1.324 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.294e-05/1.045, allocations: 174.1 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/1.045, allocations: 3 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/1.045, allocations: 2.938 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/1.045, allocations: 66.66 kB / 1.324 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.045, allocations: 0 / 1.324 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/1.045, allocations: 3.234 kB / 1.324 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/1.045, allocations: 0 / 1.324 GB, free: 22.76 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/1.045, allocations: 46.11 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/1.046, allocations: 284.8 kB / 1.324 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/1.046, allocations: 49.05 kB / 1.325 GB, free: 22.43 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.804e-05/1.046, allocations: 37.42 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/1.046, allocations: 6.75 kB / 1.325 GB, free: 22.4 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/1.046, allocations: 77.59 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/1.046, allocations: 0 / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004012/1.046, allocations: 130.7 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/1.047, allocations: 51.41 kB / 1.325 GB, free: 22.22 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.739e-05/1.047, allocations: 112.9 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/1.047, allocations: 28.61 kB / 1.325 GB, free: 22.08 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.78e-05/1.047, allocations: 84.14 kB / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/1.047, allocations: 21.7 kB / 1.325 GB, free: 21.98 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/1.047, allocations: 22.16 kB / 1.325 GB, free: 21.96 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.121e-05/1.047, allocations: 322.1 kB / 1.325 GB, free: 21.64 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/1.047, allocations: 26.73 kB / 1.325 GB, free: 21.64 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/1.047, allocations: 64.84 kB / 1.325 GB, free: 21.58 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/1.047, allocations: 97.89 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.047, allocations: 0 / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000248/1.047, allocations: 106 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/1.047, allocations: 5.094 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/1.047, allocations: 2.906 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/1.047, allocations: 0 / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/1.047, allocations: 36.95 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/1.047, allocations: 0 / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/1.048, allocations: 13.7 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/1.048, allocations: 6.016 kB / 1.326 GB, free: 21.45 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.048e-05/1.048, allocations: 119.4 kB / 1.326 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/1.048, allocations: 6.969 kB / 1.326 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002924/1.048, allocations: 110.2 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/1.048, allocations: 6.562 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/1.048, allocations: 0 / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/1.048, allocations: 0 / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000359/1.048, allocations: 369.5 kB / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/1.048, allocations: 0 / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.129e-05/1.048, allocations: 9.062 kB / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/1.048, allocations: 2.656 kB / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/1.048, allocations: 4 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/1.048, allocations: 3.938 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/1.048, allocations: 3.938 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/1.049, allocations: 192 kB / 1.327 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/1.049, allocations: 83.69 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/1.049, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.936e-05/1.049, allocations: 12.98 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/1.049, allocations: 14.41 kB / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/1.049, allocations: 6.969 kB / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.612e-05/1.049, allocations: 88.08 kB / 1.327 GB, free: 20.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.049, allocations: 0 / 1.327 GB, free: 20.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002505/1.049, allocations: 15.28 kB / 1.327 GB, free: 20.57 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.0004516/1.05, allocations: 0.7314 MB / 1.327 GB, free: 19.89 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002517/1.05, allocations: 69.59 kB / 1.327 GB, free: 19.87 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.05, allocations: 0 / 1.327 GB, free: 19.87 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/1.05, allocations: 33.56 kB / 1.328 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/1.05, allocations: 16.47 kB / 1.328 GB, free: 19.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/1.051, allocations: 1.432 MB / 1.329 GB, free: 18.54 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/1.052, allocations: 0.6847 MB / 1.33 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.898e-05/1.052, allocations: 6.297 kB / 1.33 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.838e-05/1.052, allocations: 17.44 kB / 1.33 GB, free: 17.83 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/1.052, allocations: 4 kB / 1.33 GB, free: 17.83 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/1.071, allocations: 1.866 MB / 1.331 GB, free: 17.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/9.506, allocations: 3.359 kB / 1.331 GB, free: 17.41 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.154220651020296] Failed to read output from testmodel.py, exit status != 0: 9.63186914799735 9.652433332 8.604737352 Calling exit ...