Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.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.000822/0.000822, 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.0008497/0.0008497, 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.9155/0.9155, allocations: 177.1 MB / 202.8 MB, free: 5.598 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.7222/0.7222, allocations: 154.6 MB / 413.8 MB, free: 0.7344 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_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_HysteresisRelease_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 0.6181 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.546e-05/1.677e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling): time 0.002128/0.002145, allocations: 1.993 MB / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0007241/0.002869, allocations: 0.5804 MB / 0.6206 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.388e-05/0.002953, allocations: 0 / 0.6206 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.003055, allocations: 27.72 kB / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.034e-05/0.003125, allocations: 43.52 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.003362, allocations: 67.84 kB / 0.6207 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.003531, allocations: 191.1 kB / 0.6209 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.003671, allocations: 54.44 kB / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.003847, allocations: 107.8 kB / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 8.403e-05/0.003931, allocations: 59.86 kB / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.003954, allocations: 16 kB / 0.6211 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 4.98e-05/0.004004, allocations: 16 kB / 0.6211 GB, free: 10.58 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.767e-05/0.004031, allocations: 43.77 kB / 0.6212 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.394e-05/0.004075, allocations: 51.91 kB / 0.6212 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.004436, allocations: 183.4 kB / 0.6214 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.00444, allocations: 4 kB / 0.6214 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004441, allocations: 4 kB / 0.6214 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.004446, allocations: 0 / 0.6214 GB, free: 10.3 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.0005297/0.004975, allocations: 417.4 kB / 0.6218 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.005011, allocations: 8.031 kB / 0.6218 GB, free: 9.855 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.00505, allocations: 46.73 kB / 0.6218 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.005154, allocations: 36.78 kB / 0.6219 GB, free: 9.766 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.005338, allocations: 157.5 kB / 0.622 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.929e-05/0.005407, allocations: 59.97 kB / 0.6221 GB, free: 9.516 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.005434, allocations: 20.38 kB / 0.6221 GB, free: 9.496 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.005675, allocations: 154.1 kB / 0.6223 GB, free: 9.34 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.005685, allocations: 192 / 0.6223 GB, free: 9.34 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.005698, allocations: 7.938 kB / 0.6223 GB, free: 9.332 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.005703, allocations: 4 kB / 0.6223 GB, free: 9.328 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.005967, allocations: 151.8 kB / 0.6224 GB, free: 9.18 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000526/0.006493, allocations: 419.4 kB / 0.6228 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.006775, allocations: 134.6 kB / 0.6229 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.006893, allocations: 76.8 kB / 0.623 GB, free: 8.508 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.006911, allocations: 7.938 kB / 0.623 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.006925, allocations: 30.56 kB / 0.6231 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.006926, allocations: 0 / 0.6231 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12): time 0.0004039/0.00733, allocations: 224.5 kB / 0.6233 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.007356, allocations: 55.41 kB / 0.6233 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.279e-05/0.007449, allocations: 161.3 kB / 0.6235 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.007464, allocations: 25.7 kB / 0.6235 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.007521, allocations: 128.2 kB / 0.6236 GB, free: 7.84 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.768e-05/0.007549, allocations: 47.64 kB / 0.6237 GB, free: 7.793 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.007588, allocations: 33.7 kB / 0.6237 GB, free: 7.754 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.933e-05/0.007658, allocations: 322.8 kB / 0.624 GB, free: 7.43 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.007763, allocations: 59.95 kB / 0.6241 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.007879, allocations: 80.77 kB / 0.6241 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.008096, allocations: 153.2 kB / 0.6243 GB, free: 7.129 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.008098, allocations: 0 / 0.6243 GB, free: 7.129 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002526/0.008351, allocations: 189.4 kB / 0.6245 GB, free: 6.938 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.008363, allocations: 11.94 kB / 0.6245 GB, free: 6.926 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.008368, allocations: 0 / 0.6245 GB, free: 6.926 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.008379, allocations: 0 / 0.6245 GB, free: 6.926 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.898e-05/0.008478, allocations: 39.97 kB / 0.6245 GB, free: 6.887 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.008483, allocations: 4 kB / 0.6245 GB, free: 6.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.586e-05/0.008549, allocations: 27.91 kB / 0.6245 GB, free: 6.855 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.008558, allocations: 8 kB / 0.6246 GB, free: 6.848 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 6.6e-05/0.008624, allocations: 126.8 kB / 0.6247 GB, free: 6.715 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.008645, allocations: 19.84 kB / 0.6247 GB, free: 6.695 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.01e-05/0.008675, allocations: 21.45 kB / 0.6247 GB, free: 6.672 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.008676, allocations: 0 / 0.6247 GB, free: 6.672 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.00868, allocations: 0 / 0.6247 GB, free: 6.672 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.008682, allocations: 0 / 0.6247 GB, free: 6.672 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.008836, allocations: 200.6 kB / 0.6249 GB, free: 6.434 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.008837, allocations: 0 / 0.6249 GB, free: 6.434 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.79e-05/0.008925, allocations: 35.91 kB / 0.6249 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.008926, allocations: 0 / 0.6249 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.008936, allocations: 8 kB / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.008937, allocations: 0 / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.008937, allocations: 0 / 0.6249 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.009341, allocations: 335.2 kB / 0.6253 GB, free: 6.047 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.619e-05/0.009357, allocations: 23.8 kB / 0.6253 GB, free: 6.023 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.009374, allocations: 12.06 kB / 0.6253 GB, free: 6.012 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.056e-05/0.009444, allocations: 15.97 kB / 0.6253 GB, free: 5.996 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.184e-05/0.009486, allocations: 19.91 kB / 0.6253 GB, free: 5.977 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.009491, allocations: 4 kB / 0.6253 GB, free: 5.973 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.173e-05/0.009542, allocations: 120.2 kB / 0.6255 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.009542, allocations: 0 / 0.6255 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001636/0.009706, allocations: 35.95 kB / 0.6255 GB, free: 5.82 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.000539/0.01024, allocations: 0.8728 MB / 0.6263 GB, free: 4.918 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.01049, allocations: 140 kB / 0.6265 GB, free: 4.781 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.01049, allocations: 0 / 0.6265 GB, free: 4.781 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.0106, allocations: 75.88 kB / 0.6265 GB, free: 4.707 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.01081, allocations: 22.27 kB / 0.6266 GB, free: 4.688 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.01242, allocations: 1.948 MB / 0.6285 GB, free: 2.648 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.624e-05/0.01248, allocations: 111.6 kB / 0.6286 GB, free: 2.52 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.926e-05/0.01252, allocations: 4.5 kB / 0.6286 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.265e-05/0.01259, allocations: 44.48 kB / 0.6286 GB, free: 2.473 MB / 0.5886 GB Notification: Performance of SimCode: time 5.61e-07/0.01259, allocations: 3.938 kB / 0.6286 GB, free: 2.469 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.03032, allocations: 4.089 MB / 0.6326 GB, free: 14.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.896/6.926, allocations: 10.03 kB / 0.6326 GB, free: 14.55 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling_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_Cooling.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.HysteresisRelease_Cooling.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.69564083777368] Failed to read output from testmodel.py, exit status != 0: 7.009152492508292 7.020830664 7.014722831 Calling exit ...