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.001783/0.001783, allocations: 118.8 kB / 17.84 MB, free: 5.234 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.002215/0.002215, allocations: 202.3 kB / 20.79 MB, free: 2.297 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.486/1.486, allocations: 230.6 MB / 254.2 MB, free: 15.06 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 1.017/1.017, allocations: 150 MB / 460.2 MB, free: 5.219 MB / 350.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",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.001981/0.001981, allocations: 66.03 kB / 0.6368 GB, free: 30.71 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1826, allocations: 89.13 MB / 0.7238 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002168/0.1848, allocations: 0.658 MB / 0.7245 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1866, allocations: 1.099 MB / 0.7255 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.697e-05/0.1867, allocations: 0 / 0.7255 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.012e-05/0.1867, allocations: 3.938 kB / 0.7255 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.588e-05/0.1868, allocations: 7.938 kB / 0.7255 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.1871, allocations: 47.83 kB / 0.7256 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.1872, allocations: 39.91 kB / 0.7256 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.1873, allocations: 12 kB / 0.7256 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.645e-05/0.1874, allocations: 23.91 kB / 0.7257 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.1874, allocations: 23.92 kB / 0.7257 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.1875, allocations: 4 kB / 0.7257 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.339e-05/0.1875, allocations: 23.92 kB / 0.7257 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.3e-05/0.1876, allocations: 7.984 kB / 0.7257 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.668e-05/0.1876, allocations: 31.84 kB / 0.7258 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.1878, allocations: 52.08 kB / 0.7258 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1878, allocations: 4 kB / 0.7258 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1878, allocations: 0 / 0.7258 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.1878, allocations: 0 / 0.7258 GB, free: 2.113 MB / 0.5294 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.0006833/0.1885, allocations: 363.3 kB / 0.7262 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1885, allocations: 12.03 kB / 0.7262 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.646e-05/0.1885, allocations: 8.125 kB / 0.7262 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.199e-05/0.1886, allocations: 38.73 kB / 0.7262 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.363e-05/0.1887, allocations: 12.83 kB / 0.7262 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.1888, allocations: 168.3 kB / 0.7264 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1888, allocations: 8.375 kB / 0.7264 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.1888, allocations: 384 / 0.7264 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.1891, allocations: 69.97 kB / 0.7265 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1891, allocations: 0 / 0.7265 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.1891, allocations: 0 / 0.7265 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.1891, allocations: 0 / 0.7265 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.1893, allocations: 43.95 kB / 0.7265 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004729/0.1898, allocations: 284.7 kB / 0.7268 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.19, allocations: 62.47 kB / 0.7268 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1901, allocations: 24.97 kB / 0.7269 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.1901, allocations: 0 / 0.7269 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.1903, allocations: 75.38 kB / 0.7269 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.1903, allocations: 0 / 0.7269 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0004662/0.1908, allocations: 125.5 kB / 0.727 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.1908, allocations: 51.41 kB / 0.7271 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1909, allocations: 109.8 kB / 0.7272 GB, free: 492 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.191, allocations: 25.7 kB / 0.7272 GB, free: 460 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.191, allocations: 84.14 kB / 0.7273 GB, free: 372 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.1911, allocations: 19.97 kB / 0.7273 GB, free: 352 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.1911, allocations: 29.7 kB / 0.7274 GB, free: 316 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1913, allocations: 318.8 kB / 0.7277 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.1914, allocations: 23.97 kB / 0.7277 GB, free: 15.96 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.1915, allocations: 51.41 kB / 0.7277 GB, free: 15.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.1917, allocations: 75.34 kB / 0.7278 GB, free: 15.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1917, allocations: 0 / 0.7278 GB, free: 15.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003095/0.1921, allocations: 113.5 kB / 0.7279 GB, free: 15.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1921, allocations: 7.938 kB / 0.7279 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1921, allocations: 0.5 kB / 0.7279 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1921, allocations: 4 kB / 0.7279 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1922, allocations: 11.98 kB / 0.7279 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1922, allocations: 0 / 0.7279 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.908e-05/0.1923, allocations: 15.98 kB / 0.7279 GB, free: 15.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.108e-06/0.1923, allocations: 3.938 kB / 0.728 GB, free: 15.66 MB / 0.545 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.0001022/0.1924, allocations: 125.8 kB / 0.7281 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.1924, allocations: 4 kB / 0.7281 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.1927, allocations: 106 kB / 0.7282 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1927, allocations: 0 / 0.7282 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1927, allocations: 3.984 kB / 0.7282 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1927, allocations: 0 / 0.7282 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005551/0.1933, allocations: 358.4 kB / 0.7285 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1933, allocations: 3.938 kB / 0.7285 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.958e-05/0.1933, allocations: 8 kB / 0.7285 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1933, allocations: 0 / 0.7285 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1933, allocations: 0 / 0.7285 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.1933, allocations: 7.984 kB / 0.7285 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1933, allocations: 3.938 kB / 0.7285 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1937, allocations: 187.5 kB / 0.7287 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.1937, allocations: 81.06 kB / 0.7288 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1938, allocations: 7.984 kB / 0.7288 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.98e-05/0.1939, allocations: 8 kB / 0.7288 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.1939, allocations: 15.86 kB / 0.7288 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.1939, allocations: 0 / 0.7288 GB, free: 14.64 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.779e-05/0.194, allocations: 87.47 kB / 0.7289 GB, free: 14.55 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.194, allocations: 4 kB / 0.7289 GB, free: 14.55 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000248/0.1942, allocations: 15.98 kB / 0.7289 GB, free: 14.54 MB / 0.545 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.000699/0.1949, allocations: 0.7164 MB / 0.7296 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002915/0.1952, allocations: 67.89 kB / 0.7297 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1952, allocations: 0 / 0.7297 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.1953, allocations: 31.91 kB / 0.7297 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.1956, allocations: 11.94 kB / 0.7297 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.1974, allocations: 1.385 MB / 0.7311 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.1977, allocations: 0.6847 MB / 0.7318 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.108e-05/0.1978, allocations: 4 kB / 0.7318 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.1978, allocations: 19.42 kB / 0.7318 GB, free: 11.47 MB / 0.545 GB Notification: Performance of SimCode: time 4.61e-07/0.1978, allocations: 0 / 0.7318 GB, free: 11.47 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.217, allocations: 1.794 MB / 0.7335 GB, free: 9.809 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.146/8.363, allocations: 13.31 kB / 0.7335 GB, free: 9.797 MB / 0.545 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 & /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 os._exit(0), Time elapsed: 12.315366796974558] Failed to read output from testmodel.py, exit status != 0: 8.490658362978138 8.516985365 8.323675782 Calling exit ...