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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001584, allocations: 104.8 kB / 17.07 MB, free: 5.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 194.7 kB / 20.03 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.129/1.129, allocations: 147.6 MB / 445.5 MB, free: 8.32 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 67.89 kB / 0.6109 GB, free: 8 kB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4591/0.4612, allocations: 83.15 MB / 0.6921 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001791/0.463, allocations: 0.6538 MB / 0.6927 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.4644, allocations: 1.05 MB / 0.6937 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.043e-05/0.4645, allocations: 0 / 0.6937 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/0.4645, allocations: 1.312 kB / 0.6937 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.973e-05/0.4646, allocations: 15.86 kB / 0.6938 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.4649, allocations: 38.5 kB / 0.6938 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.879e-05/0.465, allocations: 46.72 kB / 0.6938 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 8.767e-05/0.4651, allocations: 12.77 kB / 0.6939 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 5.881e-05/0.4651, allocations: 18.58 kB / 0.6939 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 5.103e-05/0.4652, allocations: 23.61 kB / 0.6939 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.4652, allocations: 3.281 kB / 0.6939 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 5.58e-05/0.4653, allocations: 13.98 kB / 0.6939 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 2.053e-05/0.4653, allocations: 14.22 kB / 0.6939 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.916e-05/0.4653, allocations: 25.38 kB / 0.6939 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.4655, allocations: 53.34 kB / 0.694 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4655, allocations: 0 / 0.694 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4655, allocations: 0 / 0.694 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.4655, allocations: 1.188 kB / 0.694 GB, free: 11.97 MB / 0.5137 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.0005711/0.4661, allocations: 363 kB / 0.6943 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.4661, allocations: 9.156 kB / 0.6944 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.4662, allocations: 43.81 kB / 0.6944 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.4662, allocations: 7.047 kB / 0.6944 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.4663, allocations: 166.7 kB / 0.6946 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.4664, allocations: 9.453 kB / 0.6946 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.4664, allocations: 3.594 kB / 0.6946 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.4666, allocations: 59.64 kB / 0.6946 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.4666, allocations: 7.875 kB / 0.6946 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.4666, allocations: 1.188 kB / 0.6946 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.4666, allocations: 1.125 kB / 0.6946 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.4668, allocations: 46.8 kB / 0.6947 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004291/0.4673, allocations: 283 kB / 0.695 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.4674, allocations: 52.64 kB / 0.695 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.4675, allocations: 30.66 kB / 0.695 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.4676, allocations: 9.734 kB / 0.695 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000193/0.4678, allocations: 75.52 kB / 0.6951 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.4678, allocations: 0 / 0.6951 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of matching and sorting (n=6): time 0.000422/0.4682, allocations: 118.5 kB / 0.6952 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.4683, allocations: 61.34 kB / 0.6953 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.985e-05/0.4684, allocations: 105.7 kB / 0.6954 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.4684, allocations: 25.7 kB / 0.6954 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.797e-05/0.4684, allocations: 90.59 kB / 0.6955 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.4685, allocations: 16.92 kB / 0.6955 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.107e-05/0.4685, allocations: 24.12 kB / 0.6955 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.4687, allocations: 320.3 kB / 0.6958 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.4688, allocations: 25.58 kB / 0.6959 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.4689, allocations: 55.81 kB / 0.6959 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.4691, allocations: 77.48 kB / 0.696 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4692, allocations: 1.812 kB / 0.696 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002584/0.4694, allocations: 99 kB / 0.6961 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.4694, allocations: 5.438 kB / 0.6961 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4695, allocations: 5.453 kB / 0.6961 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.4695, allocations: 1.281 kB / 0.6961 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.4696, allocations: 13.55 kB / 0.6961 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.4696, allocations: 5.469 kB / 0.6961 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.8e-05/0.4697, allocations: 8.125 kB / 0.6961 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.4697, allocations: 2.75 kB / 0.6961 GB, free: 9.883 MB / 0.5137 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.0001004/0.4698, allocations: 126.3 kB / 0.6963 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.4698, allocations: 6.703 kB / 0.6963 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.4701, allocations: 101 kB / 0.6964 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.4701, allocations: 1.375 kB / 0.6964 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4701, allocations: 8.062 kB / 0.6964 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.4701, allocations: 0 / 0.6964 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004895/0.4706, allocations: 355.9 kB / 0.6967 GB, free: 9.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4706, allocations: 1.375 kB / 0.6967 GB, free: 9.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/0.4707, allocations: 9.484 kB / 0.6967 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4707, allocations: 1.375 kB / 0.6967 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.4707, allocations: 0 / 0.6967 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4707, allocations: 5.375 kB / 0.6967 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4708, allocations: 0 / 0.6967 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.4711, allocations: 200.6 kB / 0.6969 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.561e-05/0.4711, allocations: 78.48 kB / 0.697 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.4711, allocations: 1.375 kB / 0.697 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.753e-05/0.4712, allocations: 9.484 kB / 0.697 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.4713, allocations: 9.312 kB / 0.697 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.4713, allocations: 6.75 kB / 0.697 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.654e-05/0.4714, allocations: 83.39 kB / 0.6971 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4714, allocations: 1.375 kB / 0.6971 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002438/0.4716, allocations: 17.56 kB / 0.6971 GB, free: 8.938 MB / 0.5137 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.0006852/0.4723, allocations: 0.735 MB / 0.6978 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002745/0.4726, allocations: 65.45 kB / 0.6979 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.4726, allocations: 0 / 0.6979 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.4727, allocations: 35.16 kB / 0.6979 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.473, allocations: 18.09 kB / 0.6979 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.4747, allocations: 1.377 MB / 0.6993 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.475, allocations: 0.6808 MB / 0.7 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.238e-05/0.4751, allocations: 6.953 kB / 0.7 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.895e-05/0.4751, allocations: 14.94 kB / 0.7 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.4751, allocations: 0 / 0.7 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/0.4987, allocations: 1.748 MB / 0.7017 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.852/8.351, allocations: 8.359 kB / 0.7017 GB, free: 4.855 MB / 0.5137 GB " [Timeout remaining time 652] (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: 11.979391800938174] Failed to read output from testmodel.py, exit status != 0: 8.418436331907287 8.438578863 7.969569749 Calling exit ...