Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001321/0.001321, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001467/0.001467, allocations: 220.3 kB / 23.03 MB, free: 4.945 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.526/1.526, allocations: 230.6 MB / 256.8 MB, free: 7.809 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 2.773/2.773, allocations: 476.8 MB / 0.7715 GB, free: 3.941 MB / 0.6231 GB " [Timeout remaining time 177] 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.FirstOrderHold,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_11_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.002029/0.002029, allocations: 62.64 kB / 1.118 GB, free: 39.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3255, allocations: 170 MB / 1.284 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00208/0.3275, allocations: 0.6741 MB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3291, allocations: 1.094 MB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.912e-05/0.3292, allocations: 0 / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.625e-05/0.3292, allocations: 7.938 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.505e-05/0.3293, allocations: 11.86 kB / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.3296, allocations: 43.91 kB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000145/0.3298, allocations: 79.75 kB / 1.286 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.3298, allocations: 13.34 kB / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.008e-05/0.3299, allocations: 27.92 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.695e-05/0.33, allocations: 35.89 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.33, allocations: 8 kB / 1.286 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.786e-05/0.3301, allocations: 19.98 kB / 1.286 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.473e-05/0.3301, allocations: 19.92 kB / 1.286 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.553e-05/0.3302, allocations: 27.92 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.3304, allocations: 83.19 kB / 1.286 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3304, allocations: 8 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3304, allocations: 0 / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3304, allocations: 0 / 1.286 GB, free: 8.613 MB / 0.9825 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.0007032/0.3311, allocations: 306.1 kB / 1.286 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.3311, allocations: 8.031 kB / 1.286 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.804e-05/0.3311, allocations: 4.188 kB / 1.286 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.208e-05/0.3312, allocations: 42.73 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.29e-05/0.3313, allocations: 4.938 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.3314, allocations: 110.5 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.3314, allocations: 4.375 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.3314, allocations: 8.375 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.3317, allocations: 89.83 kB / 1.287 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3317, allocations: 0 / 1.287 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.3317, allocations: 4 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3317, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002288/0.332, allocations: 55.95 kB / 1.287 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005643/0.3325, allocations: 271.8 kB / 1.287 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.3327, allocations: 78.47 kB / 1.287 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.3329, allocations: 36.83 kB / 1.287 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3329, allocations: 4 kB / 1.287 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.3332, allocations: 91.36 kB / 1.287 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.3332, allocations: 0 / 1.287 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005332/0.3337, allocations: 173.6 kB / 1.287 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.3338, allocations: 63.33 kB / 1.287 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.3339, allocations: 105.8 kB / 1.288 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.3339, allocations: 33.7 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.334, allocations: 92.33 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.334, allocations: 31.77 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.334, allocations: 29.72 kB / 1.288 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3342, allocations: 326.8 kB / 1.288 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3343, allocations: 36.08 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.3345, allocations: 62.48 kB / 1.288 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.3348, allocations: 102.5 kB / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3348, allocations: 0 / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003432/0.3351, allocations: 141.5 kB / 1.288 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3351, allocations: 4 kB / 1.288 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3351, allocations: 0 / 1.288 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3351, allocations: 4 kB / 1.288 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.3353, allocations: 19.98 kB / 1.288 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3353, allocations: 7.984 kB / 1.288 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.258e-05/0.3354, allocations: 4 kB / 1.288 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.3354, allocations: 8.062 kB / 1.288 GB, free: 6.078 MB / 0.9825 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 0.0001173/0.3355, allocations: 142.1 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.3355, allocations: 3.953 kB / 1.289 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003759/0.3359, allocations: 145.9 kB / 1.289 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3359, allocations: 0 / 1.289 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3359, allocations: 0 / 1.289 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3359, allocations: 3.984 kB / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000576/0.3365, allocations: 381.9 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3365, allocations: 0 / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.136e-05/0.3366, allocations: 11.98 kB / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3366, allocations: 0 / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.3366, allocations: 0 / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3366, allocations: 352 / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3366, allocations: 7.875 kB / 1.289 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003842/0.337, allocations: 239.4 kB / 1.289 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.361e-05/0.337, allocations: 7.953 kB / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.337, allocations: 8 kB / 1.289 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.3371, allocations: 11.98 kB / 1.289 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.3372, allocations: 11.92 kB / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.3372, allocations: 0 / 1.289 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.5e-05/0.3372, allocations: 91.27 kB / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3372, allocations: 0 / 1.289 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002538/0.3375, allocations: 12 kB / 1.289 GB, free: 4.938 MB / 0.9825 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.0008063/0.3383, allocations: 0.7968 MB / 1.29 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003401/0.3386, allocations: 95.88 kB / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3386, allocations: 0 / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.3388, allocations: 39.97 kB / 1.29 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.339, allocations: 14.8 kB / 1.29 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.341, allocations: 1.515 MB / 1.292 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.95e-05/0.3411, allocations: 71.83 kB / 1.292 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.615e-05/0.3411, allocations: 4.438 kB / 1.292 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.177e-05/0.3412, allocations: 19.42 kB / 1.292 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of SimCode: time 5.11e-07/0.3412, allocations: 4 kB / 1.292 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.3661, allocations: 2.291 MB / 1.294 GB, free: 124 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.88, allocations: 4.062 kB / 1.294 GB, free: 120 kB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.51603055302985] Failed to read output from testmodel.py, exit status != 0: 12.61103973002173 12.06029431 11.726772084 Calling exit ...