Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001786/0.001786, 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.002097/0.002097, 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.575/1.575, 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 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.859/2.859, allocations: 476.7 MB / 0.7678 GB, free: 9.395 MB / 0.6075 GB " [Timeout remaining time 176] 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.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.002074/0.002074, allocations: 67.91 kB / 1.113 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9052/0.9073, allocations: 169.9 MB / 1.279 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001957/0.9092, allocations: 0.677 MB / 1.28 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.9107, allocations: 1.099 MB / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.129e-05/0.9108, allocations: 4.688 kB / 1.281 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.344e-05/0.9108, allocations: 0 / 1.281 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.9109, allocations: 6.109 kB / 1.281 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.9111, allocations: 43.33 kB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.9112, allocations: 53.39 kB / 1.281 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.292e-05/0.9113, allocations: 9.562 kB / 1.281 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.531e-05/0.9114, allocations: 18.84 kB / 1.281 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.45e-05/0.9115, allocations: 23.91 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.9115, allocations: 4.125 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.9115, allocations: 24.11 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.9116, allocations: 8.922 kB / 1.281 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.9116, allocations: 23.83 kB / 1.281 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.9117, allocations: 57.03 kB / 1.281 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.9118, allocations: 9 kB / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.243e-06/0.9118, allocations: 0 / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.9118, allocations: 4 kB / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006495/0.9124, allocations: 364.4 kB / 1.281 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.9124, allocations: 13.88 kB / 1.281 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.115e-05/0.9125, allocations: 1.438 kB / 1.281 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.804e-05/0.9125, allocations: 41.31 kB / 1.281 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.705e-05/0.9126, allocations: 8.875 kB / 1.281 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.9127, allocations: 167.8 kB / 1.282 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.9127, allocations: 1.469 kB / 1.282 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.9127, allocations: 4.688 kB / 1.282 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.9129, allocations: 65.22 kB / 1.282 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.913, allocations: 4 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.913, allocations: 1.672 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.913, allocations: 1.125 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.9132, allocations: 42.03 kB / 1.282 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/0.9136, allocations: 288.9 kB / 1.282 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.9138, allocations: 49.92 kB / 1.282 GB, free: 9.352 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.9139, allocations: 28.09 kB / 1.282 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.9139, allocations: 1.766 kB / 1.282 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.9142, allocations: 79.86 kB / 1.282 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.9142, allocations: 0 / 1.282 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0004694/0.9146, allocations: 114 kB / 1.282 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.9147, allocations: 53.7 kB / 1.282 GB, free: 9.168 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.9148, allocations: 112.5 kB / 1.282 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.9148, allocations: 26.27 kB / 1.282 GB, free: 9.027 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.9149, allocations: 90.81 kB / 1.282 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.9149, allocations: 15.75 kB / 1.282 GB, free: 8.926 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.915, allocations: 21.17 kB / 1.282 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.9151, allocations: 322.4 kB / 1.283 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.9152, allocations: 23.28 kB / 1.283 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.9154, allocations: 54.95 kB / 1.283 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.9156, allocations: 72.64 kB / 1.283 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.9156, allocations: 1.297 kB / 1.283 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003495/0.916, allocations: 109.7 kB / 1.283 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.916, allocations: 8.547 kB / 1.283 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.916, allocations: 5.578 kB / 1.283 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.916, allocations: 1.531 kB / 1.283 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.9161, allocations: 13.7 kB / 1.283 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.485e-06/0.9162, allocations: 1.906 kB / 1.283 GB, free: 8.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.9162, allocations: 19.2 kB / 1.283 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.9162, allocations: 2.719 kB / 1.283 GB, free: 8.422 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001104/0.9164, allocations: 130.9 kB / 1.283 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.9164, allocations: 3.094 kB / 1.283 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.9167, allocations: 100.4 kB / 1.283 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.9167, allocations: 1.281 kB / 1.283 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.9167, allocations: 1.75 kB / 1.283 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.9167, allocations: 0 / 1.283 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005187/0.9172, allocations: 367.1 kB / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.9172, allocations: 1.406 kB / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.271e-05/0.9173, allocations: 9.047 kB / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.9173, allocations: 0.8438 kB / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.9173, allocations: 1.562 kB / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9173, allocations: 0 / 1.284 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.9173, allocations: 5.812 kB / 1.284 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.9176, allocations: 199.5 kB / 1.284 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.688e-05/0.9177, allocations: 86.97 kB / 1.284 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.9177, allocations: 1.438 kB / 1.284 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.9178, allocations: 12.64 kB / 1.284 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.9179, allocations: 7.734 kB / 1.284 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.9179, allocations: 3.484 kB / 1.284 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.9e-05/0.9179, allocations: 88.42 kB / 1.284 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.9179, allocations: 0 / 1.284 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002606/0.9182, allocations: 11.05 kB / 1.284 GB, free: 7.543 MB / 0.9981 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0007203/0.9189, allocations: 0.7261 MB / 1.285 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002941/0.9192, allocations: 61.8 kB / 1.285 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9192, allocations: 0 / 1.285 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.9193, allocations: 32.66 kB / 1.285 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.9196, allocations: 13.19 kB / 1.285 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.9215, allocations: 1.394 MB / 1.286 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.9218, allocations: 0.681 MB / 1.287 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.503e-05/0.9218, allocations: 4.688 kB / 1.287 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.9219, allocations: 19.2 kB / 1.287 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.9219, allocations: 0 / 1.287 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.9407, allocations: 1.804 MB / 1.289 GB, free: 4.414 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.611/9.552, allocations: 10.2 kB / 1.289 GB, free: 4.41 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.844533932977356] Failed to read output from testmodel.py, exit status != 0: 9.676405267964583 9.696176211 8.780596114 Calling exit ...