Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001352/0.001352, 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.001576/0.001576, 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.542/1.542, 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 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 3.004/3.004, allocations: 0.49 GB / 0.7923 GB, free: 1.34 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.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.002032/0.002032, allocations: 65.94 kB / 1.149 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8647/0.8667, 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.FirstOrderHold): time 0.001748/0.8685, allocations: 0.6948 MB / 1.322 GB, free: 24.39 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.8695, allocations: 1.113 MB / 1.323 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.934e-05/0.8696, allocations: 4 kB / 1.323 GB, free: 23.56 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.977e-05/0.8696, allocations: 6.406 kB / 1.323 GB, free: 23.56 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.854e-05/0.8697, allocations: 11.11 kB / 1.323 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.87, allocations: 48.8 kB / 1.323 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.8701, allocations: 71.23 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.8702, allocations: 7.031 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.544e-05/0.8703, allocations: 33.91 kB / 1.323 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.671e-05/0.8704, allocations: 27.39 kB / 1.323 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.8704, allocations: 5.594 kB / 1.323 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.492e-05/0.8705, allocations: 31.98 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.03e-05/0.8705, allocations: 21.89 kB / 1.323 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.8705, allocations: 24.69 kB / 1.324 GB, free: 23.42 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.8707, allocations: 86.38 kB / 1.324 GB, free: 23.38 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8707, allocations: 0 / 1.324 GB, free: 23.38 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8707, allocations: 0 / 1.324 GB, free: 23.38 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.8707, allocations: 0 / 1.324 GB, free: 23.38 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005894/0.8713, allocations: 381 kB / 1.324 GB, free: 23.01 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.8713, allocations: 18.8 kB / 1.324 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.64e-05/0.8713, allocations: 192 / 1.324 GB, free: 23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.393e-05/0.8713, allocations: 41.16 kB / 1.324 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.122e-05/0.8714, allocations: 7.406 kB / 1.324 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.916e-05/0.8715, allocations: 174.2 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.8715, allocations: 9.719 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.8715, allocations: 3.031 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.8718, allocations: 85.42 kB / 1.324 GB, free: 22.7 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.8718, allocations: 4 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.8718, allocations: 6.078 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.8718, allocations: 0 / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.872, allocations: 50.92 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000438/0.8724, allocations: 316.1 kB / 1.325 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.8726, allocations: 79.16 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.8727, allocations: 38.25 kB / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.8727, allocations: 3.938 kB / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002239/0.873, allocations: 86.75 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.873, allocations: 0 / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0004538/0.8734, allocations: 174 kB / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.8734, allocations: 57.94 kB / 1.325 GB, free: 22.12 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.763e-05/0.8735, allocations: 113.1 kB / 1.325 GB, free: 22.01 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.8735, allocations: 28.23 kB / 1.325 GB, free: 21.98 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.969e-05/0.8735, allocations: 94.36 kB / 1.325 GB, free: 21.89 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.8736, allocations: 22.73 kB / 1.325 GB, free: 21.87 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.595e-05/0.8736, allocations: 39.25 kB / 1.325 GB, free: 21.84 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.227e-05/0.8737, allocations: 325 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.8738, allocations: 39 kB / 1.326 GB, free: 21.5 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.8739, allocations: 56.48 kB / 1.326 GB, free: 21.47 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.8741, allocations: 109.5 kB / 1.326 GB, free: 21.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.8741, allocations: 256 / 1.326 GB, free: 21.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002846/0.8744, allocations: 140.6 kB / 1.326 GB, free: 21.35 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.8744, allocations: 5.438 kB / 1.326 GB, free: 21.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.8744, allocations: 6.812 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.8744, allocations: 0 / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.8745, allocations: 25.22 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.8746, allocations: 5.766 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.171e-05/0.8746, allocations: 17.11 kB / 1.326 GB, free: 21.32 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.8746, allocations: 5.062 kB / 1.326 GB, free: 21.32 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.093e-05/0.8747, allocations: 130.7 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.413e-05/0.8747, allocations: 2.625 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003149/0.875, allocations: 148 kB / 1.326 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.875, allocations: 2.906 kB / 1.326 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.875, allocations: 3.938 kB / 1.326 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.875, allocations: 0 / 1.326 GB, free: 21.12 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.8755, allocations: 410.2 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.8755, allocations: 2.875 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.844e-05/0.8755, allocations: 9.219 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.8755, allocations: 4 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.8756, allocations: 6.062 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.8756, allocations: 0 / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.8756, allocations: 3.938 kB / 1.327 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.8759, allocations: 235.1 kB / 1.327 GB, free: 20.6 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.8759, allocations: 83.86 kB / 1.327 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.8759, allocations: 3.422 kB / 1.327 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.876, allocations: 17.33 kB / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.8761, allocations: 6.812 kB / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.8761, allocations: 6.438 kB / 1.327 GB, free: 20.49 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.288e-05/0.8761, allocations: 85.31 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.8761, allocations: 0 / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002516/0.8763, allocations: 14.66 kB / 1.327 GB, free: 20.41 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000493/0.8768, allocations: 0.7799 MB / 1.328 GB, free: 19.71 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.8771, allocations: 97.91 kB / 1.328 GB, free: 19.69 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.8771, allocations: 0 / 1.328 GB, free: 19.69 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.8773, allocations: 41.89 kB / 1.328 GB, free: 19.68 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.8775, allocations: 16.02 kB / 1.328 GB, free: 19.67 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.879, allocations: 1.512 MB / 1.33 GB, free: 18.35 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.8791, allocations: 0.6838 MB / 1.33 GB, free: 17.66 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.833e-05/0.8792, allocations: 13.11 kB / 1.33 GB, free: 17.65 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.8792, allocations: 15.59 kB / 1.33 GB, free: 17.64 MB / 1.061 GB Notification: Performance of SimCode: time 4e-07/0.8792, allocations: 0 / 1.33 GB, free: 17.64 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.8978, allocations: 2.118 MB / 1.332 GB, free: 17.2 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.622/9.52, allocations: 13.91 kB / 1.332 GB, free: 17.2 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.99744206701871] Failed to read output from testmodel.py, exit status != 0: 9.643973305996042 9.659547962 8.786005788 Calling exit ...