Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.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.0008111/0.0008111, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0008047/0.0008047, allocations: 162 kB / 22.43 MB, free: 2.141 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.867/0.867, allocations: 177.2 MB / 202.8 MB, free: 5.785 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/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 master/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 master/package.mo): time 0.6931/0.6931, allocations: 154.9 MB / 414.2 MB, free: 496 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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(IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.001381/0.001381, allocations: 68.84 kB / 0.6187 GB, free: 12.16 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4746/0.476, allocations: 102 MB / 0.7183 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001688/0.4777, allocations: 0.8053 MB / 0.7191 GB, free: 12.59 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.4788, allocations: 0.9161 MB / 0.7199 GB, free: 11.67 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-05/0.4789, allocations: 0 / 0.7199 GB, free: 11.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.839e-05/0.4789, allocations: 15.8 kB / 0.72 GB, free: 11.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.815e-05/0.479, allocations: 19.81 kB / 0.72 GB, free: 11.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.4793, allocations: 47.88 kB / 0.72 GB, free: 11.59 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.4794, allocations: 111.7 kB / 0.7201 GB, free: 11.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.4795, allocations: 29.03 kB / 0.7202 GB, free: 11.45 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.4797, allocations: 78.58 kB / 0.7202 GB, free: 11.38 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.4e-05/0.4798, allocations: 55.73 kB / 0.7203 GB, free: 11.32 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.4798, allocations: 12 kB / 0.7203 GB, free: 11.31 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.771e-05/0.4798, allocations: 12 kB / 0.7203 GB, free: 11.3 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.873e-05/0.4798, allocations: 19.92 kB / 0.7203 GB, free: 11.28 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.702e-05/0.4799, allocations: 47.78 kB / 0.7204 GB, free: 11.23 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.4801, allocations: 136 kB / 0.7205 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4801, allocations: 3.984 kB / 0.7205 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4801, allocations: 0 / 0.7205 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.301e-06/0.4801, allocations: 0 / 0.7205 GB, free: 11.09 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004849/0.4806, allocations: 369.7 kB / 0.7209 GB, free: 10.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4806, allocations: 9.469 kB / 0.7209 GB, free: 10.69 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.212e-05/0.4806, allocations: 46.73 kB / 0.7209 GB, free: 10.64 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.4808, allocations: 28.83 kB / 0.7209 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.4811, allocations: 206.2 kB / 0.7211 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.4811, allocations: 384 / 0.7211 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.4811, allocations: 12.38 kB / 0.7212 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.4813, allocations: 116.5 kB / 0.7213 GB, free: 10.24 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.4813, allocations: 7.938 kB / 0.7213 GB, free: 10.23 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.4813, allocations: 0 / 0.7213 GB, free: 10.23 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4813, allocations: 0 / 0.7213 GB, free: 10.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.4815, allocations: 79.91 kB / 0.7213 GB, free: 10.16 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.4819, allocations: 456.1 kB / 0.7218 GB, free: 9.66 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.4821, allocations: 115.8 kB / 0.7219 GB, free: 9.52 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.247e-05/0.4822, allocations: 58.59 kB / 0.7219 GB, free: 9.453 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.4822, allocations: 4 kB / 0.722 GB, free: 9.449 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.4822, allocations: 38.5 kB / 0.722 GB, free: 9.402 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/0.4822, allocations: 0 / 0.722 GB, free: 9.402 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003435/0.4826, allocations: 157.5 kB / 0.7221 GB, free: 9.242 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4826, allocations: 110.8 kB / 0.7222 GB, free: 9.109 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.4827, allocations: 141.6 kB / 0.7224 GB, free: 8.961 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.4827, allocations: 41.62 kB / 0.7224 GB, free: 8.914 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.4828, allocations: 100.3 kB / 0.7225 GB, free: 8.809 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.4828, allocations: 27.78 kB / 0.7225 GB, free: 8.781 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.4829, allocations: 33.95 kB / 0.7226 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.681e-05/0.483, allocations: 326.8 kB / 0.7229 GB, free: 8.414 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-05/0.4831, allocations: 47.91 kB / 0.7229 GB, free: 8.367 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.4832, allocations: 162.2 kB / 0.7231 GB, free: 8.172 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.4833, allocations: 86.75 kB / 0.7232 GB, free: 8.078 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4833, allocations: 4 kB / 0.7232 GB, free: 8.074 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001995/0.4835, allocations: 145.4 kB / 0.7233 GB, free: 7.926 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.4835, allocations: 8 kB / 0.7233 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4835, allocations: 0 / 0.7233 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.4836, allocations: 0 / 0.7233 GB, free: 7.918 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.822e-05/0.4836, allocations: 23.92 kB / 0.7233 GB, free: 7.895 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.4836, allocations: 0 / 0.7233 GB, free: 7.895 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.035e-05/0.4837, allocations: 27.91 kB / 0.7234 GB, free: 7.867 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.4837, allocations: 4 kB / 0.7234 GB, free: 7.863 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.425e-05/0.4838, allocations: 124.1 kB / 0.7235 GB, free: 7.734 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.4838, allocations: 11.91 kB / 0.7235 GB, free: 7.723 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.484, allocations: 93.92 kB / 0.7236 GB, free: 7.621 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.484, allocations: 0 / 0.7236 GB, free: 7.621 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.484, allocations: 0 / 0.7236 GB, free: 7.621 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.484, allocations: 8 kB / 0.7236 GB, free: 7.613 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.4842, allocations: 164.7 kB / 0.7238 GB, free: 7.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4842, allocations: 0 / 0.7238 GB, free: 7.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.919e-05/0.4842, allocations: 15.98 kB / 0.7238 GB, free: 7.395 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4843, allocations: 0 / 0.7238 GB, free: 7.395 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.4843, allocations: 4 kB / 0.7238 GB, free: 7.391 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.4843, allocations: 3.984 kB / 0.7238 GB, free: 7.387 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4843, allocations: 0 / 0.7238 GB, free: 7.387 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.4845, allocations: 377.9 kB / 0.7241 GB, free: 7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.239e-05/0.4845, allocations: 11.97 kB / 0.7242 GB, free: 6.988 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.4845, allocations: 12 kB / 0.7242 GB, free: 6.977 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.4846, allocations: 15.97 kB / 0.7242 GB, free: 6.961 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.4847, allocations: 23.95 kB / 0.7242 GB, free: 6.938 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.4847, allocations: 3.938 kB / 0.7242 GB, free: 6.934 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.673e-05/0.4848, allocations: 114.5 kB / 0.7243 GB, free: 6.824 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5e-08/0.4848, allocations: 3.938 kB / 0.7243 GB, free: 6.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002078/0.485, allocations: 24 kB / 0.7243 GB, free: 6.797 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0004671/0.4854, allocations: 0.8984 MB / 0.7252 GB, free: 5.871 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002139/0.4857, allocations: 103.8 kB / 0.7253 GB, free: 5.77 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4857, allocations: 0 / 0.7253 GB, free: 5.77 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.71e-05/0.4858, allocations: 43.91 kB / 0.7254 GB, free: 5.727 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.4861, allocations: 15.94 kB / 0.7254 GB, free: 5.711 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.4878, allocations: 1.803 MB / 0.7271 GB, free: 3.801 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.013e-05/0.4879, allocations: 84.31 kB / 0.7272 GB, free: 3.699 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.066e-05/0.4879, allocations: 24.47 kB / 0.7272 GB, free: 3.676 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.297e-05/0.488, allocations: 40.48 kB / 0.7273 GB, free: 3.637 MB / 0.6042 GB Notification: Performance of SimCode: time 1.102e-06/0.488, allocations: 0 / 0.7273 GB, free: 3.637 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.5061, allocations: 3.434 MB / 0.7306 GB, free: 372 kB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.829/7.335, allocations: 3.984 kB / 0.7306 GB, free: 372 kB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.043913081055507] Failed to read output from testmodel.py, exit status != 0: 7.413033506949432 7.424892308 6.942643143 Calling exit ...