Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.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.0008132/0.0008132, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009056/0.0009056, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.929/0.929, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.705/0.705, allocations: 154.6 MB / 413.8 MB, free: 0.7734 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.554e-05/1.738e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating): time 0.002705/0.002722, allocations: 1.996 MB / 0.62 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009059/0.003628, allocations: 0.5648 MB / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.003731, allocations: 4 kB / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.00385, allocations: 31.72 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.003931, allocations: 43.52 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002925/0.004224, allocations: 67.84 kB / 0.6207 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.004427, allocations: 191.1 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.004623, allocations: 58.38 kB / 0.6209 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.004834, allocations: 107.8 kB / 0.621 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 9.129e-05/0.004925, allocations: 63.8 kB / 0.6211 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.00495, allocations: 16 kB / 0.6211 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.373e-05/0.005004, allocations: 16 kB / 0.6211 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.767e-05/0.005032, allocations: 39.83 kB / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.453e-05/0.005076, allocations: 51.84 kB / 0.6212 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.005307, allocations: 179.4 kB / 0.6214 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.00531, allocations: 8 kB / 0.6214 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.543e-06/0.005312, allocations: 3.938 kB / 0.6214 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.718e-06/0.005316, allocations: 0 / 0.6214 GB, free: 10.26 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006547/0.005971, allocations: 421.4 kB / 0.6218 GB, free: 9.82 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.006018, allocations: 8.031 kB / 0.6218 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.462e-05/0.006063, allocations: 46.73 kB / 0.6219 GB, free: 9.758 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.006186, allocations: 32.78 kB / 0.6219 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.006389, allocations: 157.5 kB / 0.622 GB, free: 9.547 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.181e-05/0.006461, allocations: 59.97 kB / 0.6221 GB, free: 9.477 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.006488, allocations: 20.38 kB / 0.6221 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.007018, allocations: 158.1 kB / 0.6223 GB, free: 9.297 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.00703, allocations: 192 / 0.6223 GB, free: 9.297 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.007046, allocations: 7.938 kB / 0.6223 GB, free: 9.289 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.007052, allocations: 4 kB / 0.6223 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.007319, allocations: 147.8 kB / 0.6224 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.00788, allocations: 419.4 kB / 0.6228 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.008176, allocations: 134.6 kB / 0.6229 GB, free: 8.547 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.008295, allocations: 72.81 kB / 0.623 GB, free: 8.473 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.008319, allocations: 7.938 kB / 0.623 GB, free: 8.465 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.008338, allocations: 38.55 kB / 0.6231 GB, free: 8.418 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.008339, allocations: 0 / 0.6231 GB, free: 8.418 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12): time 0.0004547/0.008794, allocations: 221.4 kB / 0.6233 GB, free: 8.195 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.008826, allocations: 55.41 kB / 0.6233 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.008935, allocations: 157.4 kB / 0.6235 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.00895, allocations: 29.64 kB / 0.6235 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.29e-05/0.009023, allocations: 128.2 kB / 0.6236 GB, free: 7.797 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.00905, allocations: 39.64 kB / 0.6237 GB, free: 7.758 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.009099, allocations: 37.7 kB / 0.6237 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000242/0.009341, allocations: 322.8 kB / 0.624 GB, free: 7.391 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.009453, allocations: 59.95 kB / 0.6241 GB, free: 7.332 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.009571, allocations: 82.52 kB / 0.6241 GB, free: 7.242 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.009795, allocations: 146.4 kB / 0.6243 GB, free: 7.09 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.009798, allocations: 0 / 0.6243 GB, free: 7.09 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002798/0.01008, allocations: 189.4 kB / 0.6245 GB, free: 6.898 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.01009, allocations: 11.94 kB / 0.6245 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.0101, allocations: 0 / 0.6245 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.01011, allocations: 3.938 kB / 0.6245 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.01021, allocations: 40.03 kB / 0.6245 GB, free: 6.844 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.01022, allocations: 4 kB / 0.6245 GB, free: 6.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.903e-05/0.01029, allocations: 27.91 kB / 0.6245 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.0103, allocations: 4 kB / 0.6246 GB, free: 6.809 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (con.y_boolean,$PRE.con.y_boolean) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.636e-05/0.01037, allocations: 122.8 kB / 0.6247 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.0104, allocations: 19.84 kB / 0.6247 GB, free: 6.66 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.01043, allocations: 29.45 kB / 0.6247 GB, free: 6.629 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.01043, allocations: 4 kB / 0.6247 GB, free: 6.625 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.01044, allocations: 0 / 0.6247 GB, free: 6.625 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01044, allocations: 0 / 0.6247 GB, free: 6.625 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.01062, allocations: 196.6 kB / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.01062, allocations: 0 / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.418e-05/0.01071, allocations: 35.91 kB / 0.6249 GB, free: 6.355 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.01071, allocations: 0 / 0.6249 GB, free: 6.355 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.01073, allocations: 8 kB / 0.6249 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.01073, allocations: 0 / 0.6249 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.01073, allocations: 0 / 0.6249 GB, free: 6.348 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004234/0.01115, allocations: 344.8 kB / 0.6253 GB, free: 6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.88e-05/0.01117, allocations: 19.81 kB / 0.6253 GB, free: 5.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.01119, allocations: 4 kB / 0.6253 GB, free: 5.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.303e-05/0.01126, allocations: 19.97 kB / 0.6253 GB, free: 5.957 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.0113, allocations: 16.05 kB / 0.6253 GB, free: 5.941 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.01131, allocations: 7.984 kB / 0.6253 GB, free: 5.934 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.539e-05/0.01136, allocations: 112.2 kB / 0.6255 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01136, allocations: 0 / 0.6255 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001749/0.01154, allocations: 35.95 kB / 0.6255 GB, free: 5.789 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (cap.T) * Number of discrete variables: 1 (con.y_boolean) * Number of discrete states: 1 (con.y_boolean) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.000566/0.01211, allocations: 0.8767 MB / 0.6263 GB, free: 4.883 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.01237, allocations: 135.8 kB / 0.6265 GB, free: 4.75 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01237, allocations: 0 / 0.6265 GB, free: 4.75 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.01249, allocations: 80.06 kB / 0.6265 GB, free: 4.672 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.01272, allocations: 21.81 kB / 0.6266 GB, free: 4.652 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.0147, allocations: 1.947 MB / 0.6285 GB, free: 2.613 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.039e-05/0.01477, allocations: 103.6 kB / 0.6286 GB, free: 2.492 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.477e-05/0.01482, allocations: 12.48 kB / 0.6286 GB, free: 2.48 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.205e-05/0.01489, allocations: 48.42 kB / 0.6286 GB, free: 2.434 MB / 0.5886 GB Notification: Performance of SimCode: time 8.01e-07/0.01489, allocations: 0 / 0.6286 GB, free: 2.434 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01699/0.03188, allocations: 4.092 MB / 0.6326 GB, free: 14.52 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.752/6.784, allocations: 8.203 kB / 0.6326 GB, free: 14.51 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Heating.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Heating.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.639109924435616] Failed to read output from testmodel.py, exit status != 0: 6.867198668420315 6.875642023 6.868628307 Calling exit ...