Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) 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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001227, allocations: 105.6 kB / 16.4 MB, free: 6.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 195.8 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.791/0.791, allocations: 115.3 MB / 406.5 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.14 kB / 0.5572 GB, free: 32.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1732, allocations: 76.18 MB / 0.6316 GB, free: 4.941 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.004814/0.178, allocations: 2.966 MB / 0.6345 GB, free: 1.953 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.1803, allocations: 0.908 MB / 0.6353 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004778/0.1809, allocations: 8 kB / 0.6354 GB, free: 1.031 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003058/0.1812, allocations: 71.27 kB / 0.6354 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003433/0.1816, allocations: 91.16 kB / 0.6355 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.1822, allocations: 220.4 kB / 0.6357 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.1827, allocations: 499.1 kB / 0.6362 GB, free: 172 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003648/0.1831, allocations: 221.6 kB / 0.6364 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.1833, allocations: 183.2 kB / 0.6366 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.1836, allocations: 175.1 kB / 0.6367 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.408e-05/0.1836, allocations: 44 kB / 0.6368 GB, free: 15.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.1837, allocations: 44 kB / 0.6368 GB, free: 15.51 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-05/0.1838, allocations: 99.55 kB / 0.6369 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.1839, allocations: 199 kB / 0.6371 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.1845, allocations: 0.5134 MB / 0.6376 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1845, allocations: 0 / 0.6376 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1845, allocations: 4 kB / 0.6376 GB, free: 14.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1846, allocations: 0 / 0.6376 GB, free: 14.7 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001064/0.1856, allocations: 0.7088 MB / 0.6383 GB, free: 13.94 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1857, allocations: 12.03 kB / 0.6383 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.846e-05/0.1858, allocations: 70.72 kB / 0.6384 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.1858, allocations: 48.38 kB / 0.6384 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.1864, allocations: 388.5 kB / 0.6388 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1865, allocations: 24.97 kB / 0.6388 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.1865, allocations: 32.38 kB / 0.6389 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.1871, allocations: 345.2 kB / 0.6392 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1871, allocations: 4 kB / 0.6392 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.1871, allocations: 8 kB / 0.6392 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1871, allocations: 8 kB / 0.6392 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.1876, allocations: 222.1 kB / 0.6394 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.1891, allocations: 1.17 MB / 0.6406 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005601/0.1896, allocations: 240.1 kB / 0.6408 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.1899, allocations: 108.8 kB / 0.6409 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1899, allocations: 4 kB / 0.6409 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.1899, allocations: 38.92 kB / 0.6409 GB, free: 11.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 1.463e-06/0.1899, allocations: 0 / 0.6409 GB, free: 11.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006315/0.1906, allocations: 302.3 kB / 0.6412 GB, free: 10.78 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.1907, allocations: 106.8 kB / 0.6413 GB, free: 10.65 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.191, allocations: 337.6 kB / 0.6417 GB, free: 10.31 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.191, allocations: 33.7 kB / 0.6417 GB, free: 10.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.1912, allocations: 224.2 kB / 0.6419 GB, free: 10.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.236e-05/0.1912, allocations: 74.91 kB / 0.642 GB, free: 9.973 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.15e-05/0.1913, allocations: 49.7 kB / 0.642 GB, free: 9.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1914, allocations: 350.8 kB / 0.6424 GB, free: 9.566 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.1916, allocations: 75.97 kB / 0.6424 GB, free: 9.492 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.1918, allocations: 135.7 kB / 0.6426 GB, free: 9.332 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.1922, allocations: 213.4 kB / 0.6428 GB, free: 9.105 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1922, allocations: 7.938 kB / 0.6428 GB, free: 9.098 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005398/0.1928, allocations: 273 kB / 0.643 GB, free: 8.824 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1928, allocations: 8 kB / 0.643 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1928, allocations: 0 / 0.643 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.1928, allocations: 4 kB / 0.643 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.1931, allocations: 55.91 kB / 0.6431 GB, free: 8.758 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1931, allocations: 8.125 kB / 0.6431 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.1933, allocations: 35.77 kB / 0.6431 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.1933, allocations: 8 kB / 0.6431 GB, free: 8.707 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001771/0.1935, allocations: 165.7 kB / 0.6433 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.775e-05/0.1936, allocations: 39.52 kB / 0.6433 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.1937, allocations: 39.36 kB / 0.6434 GB, free: 8.457 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1937, allocations: 4 kB / 0.6434 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1937, allocations: 0 / 0.6434 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1937, allocations: 4 kB / 0.6434 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004142/0.1941, allocations: 401.1 kB / 0.6438 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1941, allocations: 0 / 0.6438 GB, free: 8.008 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.1944, allocations: 43.97 kB / 0.6438 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1944, allocations: 0 / 0.6438 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.1944, allocations: 4 kB / 0.6438 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1944, allocations: 0 / 0.6438 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1944, allocations: 0 / 0.6438 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.1951, allocations: 428.1 kB / 0.6442 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.1952, allocations: 136.6 kB / 0.6443 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.1952, allocations: 8 kB / 0.6444 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1954, allocations: 15.98 kB / 0.6444 GB, free: 7.352 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.1955, allocations: 19.97 kB / 0.6444 GB, free: 7.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1955, allocations: 4 kB / 0.6444 GB, free: 7.328 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.1958, allocations: 247.2 kB / 0.6446 GB, free: 7.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1958, allocations: 3.938 kB / 0.6446 GB, free: 7.086 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000399/0.1962, allocations: 59.84 kB / 0.6447 GB, free: 7.027 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.001003/0.1972, allocations: 0.9641 MB / 0.6456 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004348/0.1976, allocations: 204.1 kB / 0.6458 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1977, allocations: 0 / 0.6458 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.1978, allocations: 95.91 kB / 0.6459 GB, free: 5.75 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.1984, allocations: 83.98 kB / 0.646 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.2024, allocations: 3.122 MB / 0.649 GB, free: 2.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.2029, allocations: 0.7912 MB / 0.6498 GB, free: 1.613 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.203, allocations: 38.95 kB / 0.6499 GB, free: 1.574 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.2032, allocations: 123.4 kB / 0.65 GB, free: 1.453 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2032, allocations: 0 / 0.65 GB, free: 1.453 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.2322, allocations: 6.646 MB / 0.6565 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.093, allocations: 22.98 kB / 0.6565 GB, free: 10.91 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)