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.001635/0.001635, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002342/0.002342, allocations: 217.2 kB / 22.99 MB, free: 4.977 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.9535/0.9535, allocations: 149.9 MB / 463.1 MB, free: 10.3 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.0029/0.0029, allocations: 67.66 kB / 0.6411 GB, free: 10.13 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1929, allocations: 89.18 MB / 0.7281 GB, free: 1.031 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002026/0.1949, allocations: 0.6495 MB / 0.7288 GB, free: 392 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.1964, allocations: 1.077 MB / 0.7298 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.1965, allocations: 0 / 0.7298 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.643e-05/0.1965, allocations: 3.938 kB / 0.7298 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.624e-05/0.1966, allocations: 15.92 kB / 0.7298 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.1969, allocations: 47.83 kB / 0.7299 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.197, allocations: 39.91 kB / 0.7299 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.865e-05/0.1971, allocations: 11.98 kB / 0.7299 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.338e-05/0.1971, allocations: 15.94 kB / 0.73 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.1972, allocations: 23.91 kB / 0.73 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.1972, allocations: 4 kB / 0.73 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.1973, allocations: 23.97 kB / 0.73 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.1973, allocations: 7.938 kB / 0.73 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.855e-05/0.1973, allocations: 23.86 kB / 0.73 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.1975, allocations: 60.06 kB / 0.7301 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1975, allocations: 4 kB / 0.7301 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1975, allocations: 0 / 0.7301 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.1975, allocations: 0 / 0.7301 GB, free: 15.02 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.0005953/0.1981, allocations: 286.2 kB / 0.7304 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1981, allocations: 12.03 kB / 0.7304 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.281e-05/0.1982, allocations: 34.73 kB / 0.7304 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.554e-05/0.1982, allocations: 8.891 kB / 0.7304 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.1984, allocations: 114.5 kB / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1984, allocations: 4.375 kB / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.359e-05/0.1984, allocations: 4.375 kB / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.1986, allocations: 66.16 kB / 0.7306 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.1986, allocations: 3.938 kB / 0.7306 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.1986, allocations: 0 / 0.7306 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1986, allocations: 4 kB / 0.7306 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.1988, allocations: 39.95 kB / 0.7307 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004755/0.1993, allocations: 247.8 kB / 0.7309 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.1995, allocations: 58.48 kB / 0.7309 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.1996, allocations: 24.97 kB / 0.731 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1996, allocations: 0 / 0.731 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.1998, allocations: 83.31 kB / 0.731 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.1999, allocations: 0 / 0.731 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0004226/0.2003, allocations: 125.6 kB / 0.7312 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.2003, allocations: 59.34 kB / 0.7312 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.2004, allocations: 109.8 kB / 0.7313 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2004, allocations: 25.7 kB / 0.7314 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.2005, allocations: 84.14 kB / 0.7314 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/0.2005, allocations: 15.89 kB / 0.7314 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.076e-05/0.2006, allocations: 21.72 kB / 0.7315 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001849/0.2008, allocations: 318.8 kB / 0.7318 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2009, allocations: 23.97 kB / 0.7318 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.201, allocations: 55.41 kB / 0.7318 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.2012, allocations: 79.33 kB / 0.7319 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2012, allocations: 0 / 0.7319 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002656/0.2015, allocations: 101.7 kB / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2015, allocations: 6.031 kB / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2015, allocations: 4 kB / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2015, allocations: 0 / 0.732 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.2016, allocations: 15.92 kB / 0.732 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.2016, allocations: 7.984 kB / 0.7321 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.412e-05/0.2017, allocations: 7.953 kB / 0.7321 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2017, allocations: 8 kB / 0.7321 GB, free: 12.78 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.000102/0.2018, allocations: 117.7 kB / 0.7322 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.2018, allocations: 11.98 kB / 0.7322 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.2021, allocations: 106 kB / 0.7323 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2021, allocations: 0 / 0.7323 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2021, allocations: 0 / 0.7323 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2021, allocations: 0 / 0.7323 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.2026, allocations: 318.2 kB / 0.7326 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2026, allocations: 4.094 kB / 0.7326 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.2027, allocations: 23.92 kB / 0.7326 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2027, allocations: 4 kB / 0.7326 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2027, allocations: 0 / 0.7326 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.2027, allocations: 3.984 kB / 0.7326 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2027, allocations: 0 / 0.7326 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.203, allocations: 191.5 kB / 0.7328 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/0.203, allocations: 11.89 kB / 0.7328 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.203, allocations: 3.984 kB / 0.7328 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.409e-05/0.2031, allocations: 4 kB / 0.7328 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.2031, allocations: 15.92 kB / 0.7328 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.2031, allocations: 0 / 0.7328 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.734e-05/0.2032, allocations: 87.27 kB / 0.7329 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.2032, allocations: 0 / 0.7329 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002415/0.2034, allocations: 12 kB / 0.7329 GB, free: 11.8 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.0006672/0.2041, allocations: 0.728 MB / 0.7337 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000248/0.2044, allocations: 63.89 kB / 0.7337 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2044, allocations: 4 kB / 0.7337 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.2045, allocations: 27.97 kB / 0.7337 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.2047, allocations: 7.938 kB / 0.7338 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.2064, allocations: 1.387 MB / 0.7351 GB, free: 9.461 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.28e-05/0.2065, allocations: 71.3 kB / 0.7352 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.705e-05/0.2066, allocations: 4.438 kB / 0.7352 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.2066, allocations: 15.42 kB / 0.7352 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.2066, allocations: 0 / 0.7352 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/0.2347, allocations: 2.301 MB / 0.7374 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.31, allocations: 12.11 kB / 0.7375 GB, free: 7.184 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 15.149699035100639] Failed to read output from testmodel.py, exit status != 0: 11.42207076586783 11.447889731 11.245685249 Calling exit ...