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.002095/0.002095, allocations: 97.91 kB / 20.48 MB, free: 1.363 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.002194/0.002194, allocations: 215.4 kB / 23.78 MB, free: 4.523 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.594/1.594, allocations: 230.6 MB / 257.6 MB, free: 7.785 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.9731/0.9731, allocations: 150 MB / 464 MB, free: 10.23 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="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.00208/0.00208, allocations: 57.94 kB / 0.6419 GB, free: 9.934 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1867, allocations: 89.17 MB / 0.729 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002065/0.1887, allocations: 0.6503 MB / 0.7297 GB, free: 192 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1903, allocations: 1.077 MB / 0.7307 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.716e-05/0.1904, allocations: 4 kB / 0.7307 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.275e-05/0.1904, allocations: 3.938 kB / 0.7307 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.796e-05/0.1905, allocations: 7.938 kB / 0.7307 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.1908, allocations: 51.81 kB / 0.7308 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000106/0.1909, allocations: 39.92 kB / 0.7308 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.191, allocations: 11.97 kB / 0.7308 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.577e-05/0.1911, allocations: 15.94 kB / 0.7308 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.258e-05/0.1912, allocations: 31.84 kB / 0.7309 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.1912, allocations: 4 kB / 0.7309 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.819e-05/0.1913, allocations: 19.98 kB / 0.7309 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.1913, allocations: 8 kB / 0.7309 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.348e-05/0.1913, allocations: 23.84 kB / 0.7309 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.1915, allocations: 64.06 kB / 0.731 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1915, allocations: 0 / 0.731 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.793e-06/0.1915, allocations: 0 / 0.731 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.1915, allocations: 0 / 0.731 GB, free: 14.82 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.0006333/0.1921, allocations: 290.2 kB / 0.7313 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1922, allocations: 8.031 kB / 0.7313 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.402e-05/0.1922, allocations: 192 / 0.7313 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.064e-05/0.1922, allocations: 38.73 kB / 0.7313 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.839e-05/0.1923, allocations: 4.891 kB / 0.7313 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1924, allocations: 118.5 kB / 0.7314 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.1924, allocations: 8.375 kB / 0.7314 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.1924, allocations: 384 / 0.7314 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.1927, allocations: 69.97 kB / 0.7315 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1927, allocations: 0 / 0.7315 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.1927, allocations: 3.938 kB / 0.7315 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1927, allocations: 0 / 0.7315 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.1929, allocations: 43.95 kB / 0.7315 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.1933, allocations: 243.8 kB / 0.7318 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.1935, allocations: 58.48 kB / 0.7318 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.889e-05/0.1936, allocations: 24.97 kB / 0.7319 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.1936, allocations: 0 / 0.7319 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.1938, allocations: 83.31 kB / 0.7319 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.1938, allocations: 0 / 0.7319 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0004103/0.1943, allocations: 121.6 kB / 0.732 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.1943, allocations: 55.41 kB / 0.7321 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.39e-05/0.1944, allocations: 109.8 kB / 0.7322 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.1944, allocations: 25.7 kB / 0.7322 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.537e-05/0.1945, allocations: 92.2 kB / 0.7323 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.1945, allocations: 11.89 kB / 0.7323 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.1945, allocations: 21.72 kB / 0.7324 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1947, allocations: 318.8 kB / 0.7327 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1948, allocations: 31.97 kB / 0.7327 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.1949, allocations: 47.41 kB / 0.7327 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.1951, allocations: 83.33 kB / 0.7328 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1951, allocations: 0 / 0.7328 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002667/0.1954, allocations: 101.6 kB / 0.7329 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1954, allocations: 9.969 kB / 0.7329 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1954, allocations: 0 / 0.7329 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.1954, allocations: 4 kB / 0.7329 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1955, allocations: 11.98 kB / 0.7329 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.1955, allocations: 3.984 kB / 0.7329 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.358e-05/0.1956, allocations: 11.95 kB / 0.7329 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.1956, allocations: 0 / 0.7329 GB, free: 12.58 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.0001054/0.1957, allocations: 125.8 kB / 0.7331 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.1957, allocations: 7.984 kB / 0.7331 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.196, allocations: 106 kB / 0.7332 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.196, allocations: 0 / 0.7332 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.196, allocations: 0 / 0.7332 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.196, allocations: 0 / 0.7332 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004596/0.1965, allocations: 322.1 kB / 0.7335 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1965, allocations: 4.031 kB / 0.7335 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.065e-05/0.1966, allocations: 16.05 kB / 0.7335 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1966, allocations: 4 kB / 0.7335 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1966, allocations: 0 / 0.7335 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.1966, allocations: 3.984 kB / 0.7335 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1966, allocations: 3.938 kB / 0.7335 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.1969, allocations: 191.5 kB / 0.7337 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.878e-06/0.1969, allocations: 7.891 kB / 0.7337 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.1969, allocations: 11.98 kB / 0.7337 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.698e-05/0.197, allocations: 8 kB / 0.7337 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.1971, allocations: 11.86 kB / 0.7337 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1971, allocations: 4 kB / 0.7337 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.121e-05/0.1971, allocations: 87.27 kB / 0.7338 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/0.1971, allocations: 0 / 0.7338 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002445/0.1974, allocations: 12 kB / 0.7338 GB, free: 11.59 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.0006532/0.198, allocations: 0.7242 MB / 0.7345 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002572/0.1983, allocations: 63.89 kB / 0.7346 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1983, allocations: 0 / 0.7346 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.1984, allocations: 31.91 kB / 0.7346 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.1987, allocations: 11.94 kB / 0.7346 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.2004, allocations: 1.389 MB / 0.736 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.615e-05/0.2005, allocations: 71.3 kB / 0.7361 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.197e-05/0.2005, allocations: 4.438 kB / 0.7361 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.2006, allocations: 15.42 kB / 0.7361 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of SimCode: time 8.62e-07/0.2006, allocations: 0 / 0.7361 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.2225, allocations: 1.952 MB / 0.738 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.71, allocations: 14.17 kB / 0.738 GB, free: 7.34 MB / 0.5606 GB " [Timeout remaining time 648] (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: 15.661991130909882] Failed to read output from testmodel.py, exit status != 0: 11.876681568915956 11.893802472 11.698986445 Calling exit ...