Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001347/0.001347, allocations: 105.2 kB / 19.74 MB, free: 2.012 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.001609/0.001609, allocations: 213 kB / 23.04 MB, free: 4.887 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.4/1.4, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9635/0.9635, allocations: 150 MB / 463.2 MB, free: 10.18 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/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(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002005/0.002005, allocations: 69.91 kB / 0.6413 GB, free: 9.836 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1937, allocations: 89.17 MB / 0.7283 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002189/0.1959, allocations: 0.6449 MB / 0.729 GB, free: 88 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.1976, allocations: 1.077 MB / 0.73 GB, free: 15 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.336e-05/0.1977, allocations: 0 / 0.73 GB, free: 15 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.343e-05/0.1977, allocations: 11.86 kB / 0.73 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.875e-05/0.1978, allocations: 7.938 kB / 0.73 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.1981, allocations: 39.89 kB / 0.7301 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1983, allocations: 43.86 kB / 0.7301 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.1984, allocations: 15.92 kB / 0.7301 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.265e-05/0.1984, allocations: 23.92 kB / 0.7302 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.986e-05/0.1985, allocations: 23.91 kB / 0.7302 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.1985, allocations: 4 kB / 0.7302 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.273e-05/0.1986, allocations: 19.98 kB / 0.7302 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.785e-05/0.1986, allocations: 4 kB / 0.7302 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.1987, allocations: 15.92 kB / 0.7302 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.1988, allocations: 67.94 kB / 0.7303 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1988, allocations: 4 kB / 0.7303 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.174e-06/0.1988, allocations: 0 / 0.7303 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.1989, allocations: 0 / 0.7303 GB, free: 14.72 MB / 0.5606 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.0007009/0.1996, allocations: 294.2 kB / 0.7306 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1996, allocations: 12.03 kB / 0.7306 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.1996, allocations: 30.75 kB / 0.7306 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.191e-05/0.1997, allocations: 8.891 kB / 0.7306 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.1998, allocations: 106.5 kB / 0.7307 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1999, allocations: 12.36 kB / 0.7307 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.1999, allocations: 4.375 kB / 0.7307 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.2001, allocations: 62.22 kB / 0.7308 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2001, allocations: 3.938 kB / 0.7308 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.2001, allocations: 7.938 kB / 0.7308 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2001, allocations: 0 / 0.7308 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.2003, allocations: 39.95 kB / 0.7309 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.2007, allocations: 247.8 kB / 0.7311 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.2009, allocations: 50.55 kB / 0.7311 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.201, allocations: 28.95 kB / 0.7312 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.201, allocations: 7.938 kB / 0.7312 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.2013, allocations: 71.39 kB / 0.7312 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.2013, allocations: 0 / 0.7312 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0004204/0.2017, allocations: 113.6 kB / 0.7313 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.2017, allocations: 59.41 kB / 0.7314 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.2019, allocations: 109.8 kB / 0.7315 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.2019, allocations: 29.64 kB / 0.7315 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.794e-05/0.2019, allocations: 88.12 kB / 0.7316 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.202, allocations: 19.84 kB / 0.7316 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.202, allocations: 17.72 kB / 0.7317 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.2022, allocations: 326.8 kB / 0.732 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2023, allocations: 20.06 kB / 0.732 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.2024, allocations: 51.39 kB / 0.732 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.2026, allocations: 87.31 kB / 0.7321 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2026, allocations: 0 / 0.7321 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002655/0.2029, allocations: 105.6 kB / 0.7322 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2029, allocations: 7.938 kB / 0.7322 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2029, allocations: 0 / 0.7322 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2029, allocations: 4 kB / 0.7322 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.203, allocations: 16.08 kB / 0.7322 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.203, allocations: 7.938 kB / 0.7323 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.382e-05/0.2031, allocations: 7.953 kB / 0.7323 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.2031, allocations: 7.984 kB / 0.7323 GB, free: 12.47 MB / 0.5606 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.0001133/0.2032, allocations: 121.7 kB / 0.7324 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.2032, allocations: 0.5 kB / 0.7324 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002841/0.2035, allocations: 102 kB / 0.7325 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2035, allocations: 64 / 0.7325 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2035, allocations: 8 kB / 0.7325 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2035, allocations: 3.938 kB / 0.7325 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004611/0.204, allocations: 321.5 kB / 0.7328 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.204, allocations: 0 / 0.7328 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.84e-05/0.2041, allocations: 11.98 kB / 0.7328 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2041, allocations: 0 / 0.7328 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.2041, allocations: 0 / 0.7328 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2041, allocations: 0 / 0.7328 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2041, allocations: 0 / 0.7328 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.2044, allocations: 199.4 kB / 0.733 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.337e-05/0.2044, allocations: 11.94 kB / 0.733 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.2044, allocations: 4 kB / 0.733 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.253e-05/0.2045, allocations: 7.984 kB / 0.733 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.2045, allocations: 7.938 kB / 0.733 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2046, allocations: 0 / 0.733 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.04e-05/0.2046, allocations: 91.2 kB / 0.7331 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/0.2046, allocations: 0 / 0.7331 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002309/0.2048, allocations: 16 kB / 0.7331 GB, free: 11.5 MB / 0.5606 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.0006829/0.2055, allocations: 0.7244 MB / 0.7338 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.2058, allocations: 59.89 kB / 0.7339 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2058, allocations: 0 / 0.7339 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.2059, allocations: 32.22 kB / 0.7339 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.2062, allocations: 19.88 kB / 0.734 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.2079, allocations: 1.391 MB / 0.7353 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.607e-05/0.2079, allocations: 75.3 kB / 0.7354 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.904e-05/0.208, allocations: 3.984 kB / 0.7354 GB, free: 9.062 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/0.208, allocations: 15.44 kB / 0.7354 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.208, allocations: 0 / 0.7354 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.2358, allocations: 2.293 MB / 0.7376 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.77, allocations: 6.688 kB / 0.7376 GB, free: 6.891 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.543709096964449] Failed to read output from testmodel.py, exit status != 0: 10.8733208659105 10.888057221 10.686169393 Calling exit ...