Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001749/0.001749, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.002221/0.002221, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.566/1.566, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.957/2.957, allocations: 0.49 GB / 0.7923 GB, free: 1.289 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.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_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.002573/0.002573, allocations: 59.91 kB / 1.149 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048/1.051, allocations: 176.1 MB / 1.321 GB, free: 24.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001872/1.053, allocations: 0.7539 MB / 1.322 GB, free: 24.27 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001385/1.054, allocations: 1.215 MB / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.304e-05/1.054, allocations: 0 / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/1.054, allocations: 3.938 kB / 1.323 GB, free: 23.38 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.91e-05/1.054, allocations: 14.91 kB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005486/1.055, allocations: 146.4 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001866/1.055, allocations: 122.2 kB / 1.324 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/1.055, allocations: 16.94 kB / 1.324 GB, free: 23.23 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.056e-05/1.055, allocations: 55.64 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.885e-05/1.055, allocations: 50.02 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/1.055, allocations: 11.69 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.759e-05/1.055, allocations: 30.53 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/1.055, allocations: 18.03 kB / 1.324 GB, free: 23.17 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.203e-05/1.056, allocations: 48.58 kB / 1.324 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001837/1.056, allocations: 122.8 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/1.056, allocations: 0 / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.006e-06/1.056, allocations: 2.688 kB / 1.324 GB, free: 23.1 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.929e-06/1.056, allocations: 0 / 1.324 GB, free: 23.1 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005633/1.056, allocations: 421.3 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/1.056, allocations: 12.14 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.68e-05/1.056, allocations: 10.88 kB / 1.324 GB, free: 22.67 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.375e-05/1.056, allocations: 42.03 kB / 1.324 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.896e-05/1.057, allocations: 12.77 kB / 1.324 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/1.057, allocations: 166.9 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/1.057, allocations: 6.062 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/1.057, allocations: 13.17 kB / 1.325 GB, free: 22.42 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/1.057, allocations: 79.06 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/1.057, allocations: 0 / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/1.057, allocations: 7.328 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/1.057, allocations: 4 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/1.057, allocations: 45.44 kB / 1.325 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/1.057, allocations: 351.4 kB / 1.325 GB, free: 22.04 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/1.058, allocations: 55.16 kB / 1.325 GB, free: 22.01 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.768e-05/1.058, allocations: 29.27 kB / 1.325 GB, free: 21.99 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/1.058, allocations: 7.359 kB / 1.325 GB, free: 21.99 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/1.058, allocations: 82.39 kB / 1.325 GB, free: 21.93 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.502e-06/1.058, allocations: 0 / 1.325 GB, free: 21.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0004464/1.058, allocations: 154.8 kB / 1.325 GB, free: 21.87 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/1.058, allocations: 58.14 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.898e-05/1.059, allocations: 117.7 kB / 1.326 GB, free: 21.7 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/1.059, allocations: 34.73 kB / 1.326 GB, free: 21.66 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.264e-05/1.059, allocations: 94.84 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/1.059, allocations: 21.8 kB / 1.326 GB, free: 21.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.58e-05/1.059, allocations: 37.41 kB / 1.326 GB, free: 21.53 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.626e-05/1.059, allocations: 328.4 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/1.059, allocations: 48.58 kB / 1.326 GB, free: 21.19 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/1.059, allocations: 91.23 kB / 1.326 GB, free: 21.13 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/1.059, allocations: 151 kB / 1.326 GB, free: 21.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.059, allocations: 2.812 kB / 1.326 GB, free: 21.02 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004045/1.06, allocations: 213.7 kB / 1.327 GB, free: 20.9 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/1.06, allocations: 39.3 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/1.06, allocations: 2.656 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/1.06, allocations: 5.938 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.869e-05/1.06, allocations: 13.78 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/1.06, allocations: 2.594 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/1.06, allocations: 41.16 kB / 1.327 GB, free: 20.86 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/1.06, allocations: 19.23 kB / 1.327 GB, free: 20.84 MB / 1.061 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 7.405e-05/1.06, allocations: 129.5 kB / 1.327 GB, free: 20.72 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/1.06, allocations: 6.359 kB / 1.327 GB, free: 20.72 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002824/1.06, allocations: 119.2 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.06, allocations: 4 kB / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.061, allocations: 0 / 1.327 GB, free: 20.66 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.061, allocations: 7.938 kB / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/1.061, allocations: 382.5 kB / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/1.061, allocations: 0 / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/1.061, allocations: 12.25 kB / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/1.061, allocations: 0 / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/1.061, allocations: 0 / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/1.061, allocations: 3.938 kB / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/1.061, allocations: 3.062 kB / 1.327 GB, free: 20.31 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/1.061, allocations: 221 kB / 1.328 GB, free: 20.14 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/1.061, allocations: 81.06 kB / 1.328 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/1.061, allocations: 6.234 kB / 1.328 GB, free: 20.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.484e-05/1.061, allocations: 10.38 kB / 1.328 GB, free: 20.04 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/1.061, allocations: 6.391 kB / 1.328 GB, free: 20.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/1.061, allocations: 2.5 kB / 1.328 GB, free: 20.04 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.315e-05/1.061, allocations: 98.39 kB / 1.328 GB, free: 19.95 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.061, allocations: 2.531 kB / 1.328 GB, free: 19.95 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002752/1.062, allocations: 26.78 kB / 1.328 GB, free: 19.95 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: 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.0005401/1.062, allocations: 0.7505 MB / 1.328 GB, free: 19.26 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004382/1.063, allocations: 169.2 kB / 1.329 GB, free: 19.16 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.063, allocations: 0.8125 kB / 1.329 GB, free: 19.16 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/1.063, allocations: 31.67 kB / 1.329 GB, free: 19.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/1.063, allocations: 19.41 kB / 1.329 GB, free: 19.15 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/1.065, allocations: 1.728 MB / 1.33 GB, free: 17.69 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/1.065, allocations: 0.6881 MB / 1.331 GB, free: 17 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.602e-05/1.065, allocations: 7.906 kB / 1.331 GB, free: 16.99 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.29e-05/1.065, allocations: 26.86 kB / 1.331 GB, free: 16.97 MB / 1.061 GB Notification: Performance of SimCode: time 1.092e-06/1.065, allocations: 0 / 1.331 GB, free: 16.97 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/1.086, allocations: 2.611 MB / 1.334 GB, free: 16.51 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.518/9.604, allocations: 12.92 kB / 1.334 GB, free: 16.5 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.134426809032448] Failed to read output from testmodel.py, exit status != 0: 9.729738508001901 9.749623387 8.690081286 Calling exit ...