Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 97.88 kB / 19.73 MB, free: 2.117 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.001611/0.001611, allocations: 215 kB / 23.03 MB, free: 4.922 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.467/1.467, 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.853/2.853, allocations: 476.8 MB / 0.7715 GB, free: 4.031 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.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.002007/0.002007, allocations: 63.05 kB / 1.118 GB, free: 39.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3464, allocations: 170 MB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002224/0.3487, allocations: 0.7375 MB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3503, allocations: 1.176 MB / 1.286 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.281e-05/0.3504, allocations: 4 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.557e-05/0.3504, allocations: 7.875 kB / 1.286 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.871e-05/0.3505, allocations: 11.92 kB / 1.286 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.351, allocations: 139.7 kB / 1.286 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.3512, allocations: 127.7 kB / 1.286 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3514, allocations: 23.69 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.3515, allocations: 43.91 kB / 1.286 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3516, allocations: 59.69 kB / 1.286 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.3516, allocations: 12 kB / 1.286 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.3517, allocations: 31.97 kB / 1.286 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.3517, allocations: 19.94 kB / 1.286 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.531e-05/0.3518, allocations: 39.84 kB / 1.286 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.352, allocations: 125 kB / 1.287 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.352, allocations: 0 / 1.287 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.352, allocations: 4 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.352, allocations: 0 / 1.287 GB, free: 8.125 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006462/0.3527, allocations: 343.8 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3527, allocations: 11.97 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.683e-05/0.3527, allocations: 192 / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.3528, allocations: 38.75 kB / 1.287 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.733e-05/0.3529, allocations: 16.89 kB / 1.287 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.353, allocations: 118.4 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.353, allocations: 4.375 kB / 1.287 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.353, allocations: 8.375 kB / 1.287 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.3533, allocations: 81.7 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.3533, allocations: 0 / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.3533, allocations: 4 kB / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-06/0.3533, allocations: 4 kB / 1.287 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.3535, allocations: 47.95 kB / 1.287 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000544/0.354, allocations: 291.8 kB / 1.288 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.3542, allocations: 58.55 kB / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.3543, allocations: 28.95 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3543, allocations: 3.938 kB / 1.288 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.3546, allocations: 87.36 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.3546, allocations: 4 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0005052/0.3551, allocations: 161.6 kB / 1.288 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3551, allocations: 51.41 kB / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3553, allocations: 117.8 kB / 1.288 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.3553, allocations: 29.7 kB / 1.288 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.3554, allocations: 100 kB / 1.288 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.3554, allocations: 19.84 kB / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/0.3555, allocations: 37.7 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3556, allocations: 330.8 kB / 1.288 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.3558, allocations: 85.59 kB / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.3561, allocations: 118.8 kB / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.3564, allocations: 150.7 kB / 1.289 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3564, allocations: 0 / 1.289 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000521/0.3569, allocations: 252.8 kB / 1.289 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.357, allocations: 33.7 kB / 1.289 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.357, allocations: 4 kB / 1.289 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.357, allocations: 0 / 1.289 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.3571, allocations: 16.14 kB / 1.289 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3571, allocations: 4 kB / 1.289 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.3573, allocations: 47.84 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3573, allocations: 4 kB / 1.289 GB, free: 5.191 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.000129/0.3575, allocations: 133.7 kB / 1.289 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.3575, allocations: 7.953 kB / 1.289 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003292/0.3578, allocations: 122 kB / 1.289 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.3578, allocations: 3.984 kB / 1.289 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3578, allocations: 0 / 1.289 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3578, allocations: 7.875 kB / 1.289 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004806/0.3583, allocations: 345.6 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3583, allocations: 0 / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-05/0.3584, allocations: 7.984 kB / 1.29 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3584, allocations: 8 kB / 1.29 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.3584, allocations: 0 / 1.29 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3584, allocations: 7.938 kB / 1.29 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3584, allocations: 0 / 1.29 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.3587, allocations: 215.4 kB / 1.29 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.32e-05/0.3588, allocations: 7.953 kB / 1.29 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.3588, allocations: 0 / 1.29 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.33e-05/0.3589, allocations: 15.92 kB / 1.29 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.3589, allocations: 7.984 kB / 1.29 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-06/0.3589, allocations: 0 / 1.29 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.021e-05/0.359, allocations: 95.27 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.359, allocations: 4 kB / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002912/0.3593, allocations: 24 kB / 1.29 GB, free: 4.113 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007109/0.36, allocations: 0.7553 MB / 1.291 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000437/0.3604, allocations: 185.2 kB / 1.291 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3604, allocations: 8 kB / 1.291 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.3606, allocations: 39.97 kB / 1.291 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3609, allocations: 23.86 kB / 1.291 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.3632, allocations: 1.842 MB / 1.293 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.711e-05/0.3633, allocations: 71.33 kB / 1.293 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.622e-05/0.3634, allocations: 4 kB / 1.293 GB, free: 0.9805 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.3634, allocations: 23.42 kB / 1.293 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of SimCode: time 5.82e-07/0.3634, allocations: 0 / 1.293 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.3876, allocations: 2.845 MB / 1.296 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.03, allocations: 13.67 kB / 1.296 GB, free: 14.29 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.81354810099583] Failed to read output from testmodel.py, exit status != 0: 12.770594521076418 12.208593868 11.853374399 Calling exit ...