Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0008805/0.0008805, 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.00125/0.00125, 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.8967/0.8967, allocations: 177.2 MB / 202.8 MB, free: 5.781 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.7355/0.7355, allocations: 154.9 MB / 414.2 MB, free: 0.5273 MB / 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.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",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.0008404/0.0008404, allocations: 67.53 kB / 0.6186 GB, free: 13.36 MB / 0.5886 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.4817/0.4825, allocations: 102 MB / 0.7182 GB, free: 23.12 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001496/0.484, allocations: 0.6465 MB / 0.7188 GB, free: 22.73 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.4852, allocations: 1.087 MB / 0.7199 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.408e-05/0.4853, allocations: 1.188 kB / 0.7199 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.4853, allocations: 3.938 kB / 0.7199 GB, free: 21.94 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.7e-05/0.4854, allocations: 6.719 kB / 0.7199 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.4857, allocations: 47.53 kB / 0.7199 GB, free: 21.91 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.85e-05/0.4858, allocations: 41.3 kB / 0.72 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.4859, allocations: 13.23 kB / 0.72 GB, free: 21.88 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.486, allocations: 27.73 kB / 0.72 GB, free: 21.87 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 6.176e-05/0.4861, allocations: 27.55 kB / 0.72 GB, free: 21.86 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.4861, allocations: 3.219 kB / 0.72 GB, free: 21.86 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 8.614e-05/0.4862, allocations: 24.7 kB / 0.7201 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.4862, allocations: 7.75 kB / 0.7201 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.399e-05/0.4862, allocations: 23.55 kB / 0.7201 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.4864, allocations: 71.77 kB / 0.7202 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.4864, allocations: 0 / 0.7202 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4864, allocations: 0.5156 kB / 0.7202 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.4864, allocations: 0 / 0.7202 GB, free: 21.8 MB / 0.6355 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.0004449/0.4869, allocations: 294.3 kB / 0.7204 GB, free: 21.52 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.4869, allocations: 10.72 kB / 0.7204 GB, free: 21.52 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.409e-05/0.4869, allocations: 33.23 kB / 0.7205 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.487, allocations: 5.109 kB / 0.7205 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.895e-05/0.4871, allocations: 118.7 kB / 0.7206 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.4871, allocations: 6.125 kB / 0.7206 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.4871, allocations: 3.812 kB / 0.7206 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/0.4872, allocations: 66.08 kB / 0.7207 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.4872, allocations: 3.938 kB / 0.7207 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.4872, allocations: 5.703 kB / 0.7207 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4872, allocations: 1.312 kB / 0.7207 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.4874, allocations: 37.92 kB / 0.7207 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.4877, allocations: 242 kB / 0.7209 GB, free: 21.03 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.4878, allocations: 54.7 kB / 0.721 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.303e-05/0.4879, allocations: 32.17 kB / 0.721 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.4879, allocations: 4.703 kB / 0.721 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001541/0.488, allocations: 73.03 kB / 0.7211 GB, free: 20.92 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.488, allocations: 0 / 0.7211 GB, free: 20.92 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002769/0.4883, allocations: 122.6 kB / 0.7212 GB, free: 20.87 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.4883, allocations: 57.09 kB / 0.7213 GB, free: 20.8 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.412e-05/0.4884, allocations: 109.4 kB / 0.7214 GB, free: 20.7 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.4884, allocations: 25.7 kB / 0.7214 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.827e-05/0.4884, allocations: 92.22 kB / 0.7215 GB, free: 20.57 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.4885, allocations: 19.08 kB / 0.7215 GB, free: 20.56 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.4885, allocations: 22.39 kB / 0.7215 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.398e-05/0.4885, allocations: 321.9 kB / 0.7218 GB, free: 20.22 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.695e-05/0.4886, allocations: 23.62 kB / 0.7219 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.134e-05/0.4887, allocations: 51.92 kB / 0.7219 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.4888, allocations: 85.48 kB / 0.722 GB, free: 20.12 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.4888, allocations: 1.125 kB / 0.722 GB, free: 20.12 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001523/0.4889, allocations: 105.9 kB / 0.7221 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.4889, allocations: 5.781 kB / 0.7221 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4889, allocations: 1.094 kB / 0.7221 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.489, allocations: 2.844 kB / 0.7221 GB, free: 20.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.388e-05/0.489, allocations: 22.11 kB / 0.7221 GB, free: 20.06 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.489, allocations: 0 / 0.7221 GB, free: 20.06 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.162e-05/0.4891, allocations: 8.453 kB / 0.7221 GB, free: 20.06 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.4891, allocations: 3.609 kB / 0.7221 GB, free: 20.06 MB / 0.6355 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 5.416e-05/0.4891, allocations: 124.7 kB / 0.7223 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-06/0.4891, allocations: 6.031 kB / 0.7223 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001732/0.4893, allocations: 105 kB / 0.7224 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4893, allocations: 1.031 kB / 0.7224 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4893, allocations: 1.219 kB / 0.7224 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4893, allocations: 5.062 kB / 0.7224 GB, free: 19.88 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/0.4896, allocations: 319.8 kB / 0.7227 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4896, allocations: 0 / 0.7227 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.631e-05/0.4896, allocations: 12.75 kB / 0.7227 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4896, allocations: 1.031 kB / 0.7227 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.4896, allocations: 1.766 kB / 0.7227 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4896, allocations: 0 / 0.7227 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.4896, allocations: 5.641 kB / 0.7227 GB, free: 19.58 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.4898, allocations: 200 kB / 0.7229 GB, free: 19.42 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.005e-06/0.4898, allocations: 2.672 kB / 0.7229 GB, free: 19.42 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.4898, allocations: 1.562 kB / 0.7229 GB, free: 19.42 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.192e-05/0.4899, allocations: 12.92 kB / 0.7229 GB, free: 19.42 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.4899, allocations: 8.328 kB / 0.7229 GB, free: 19.41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.4899, allocations: 2.062 kB / 0.7229 GB, free: 19.41 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.374e-05/0.4899, allocations: 86.39 kB / 0.723 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4899, allocations: 0 / 0.723 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001743/0.4901, allocations: 14.14 kB / 0.723 GB, free: 19.33 MB / 0.6355 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.0003324/0.4905, allocations: 0.7363 MB / 0.7237 GB, free: 18.64 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.4906, allocations: 61.11 kB / 0.7238 GB, free: 18.63 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4906, allocations: 1.062 kB / 0.7238 GB, free: 18.63 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.536e-05/0.4907, allocations: 28.11 kB / 0.7238 GB, free: 18.63 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.4909, allocations: 17.41 kB / 0.7238 GB, free: 18.62 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009457/0.4919, allocations: 1.376 MB / 0.7252 GB, free: 17.35 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.775e-05/0.4919, allocations: 70.91 kB / 0.7252 GB, free: 17.27 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.005e-05/0.4919, allocations: 3.719 kB / 0.7252 GB, free: 17.27 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.492, allocations: 16.02 kB / 0.7253 GB, free: 17.26 MB / 0.6355 GB Notification: Performance of SimCode: time 5.31e-07/0.492, allocations: 1.281 kB / 0.7253 GB, free: 17.26 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.5099, allocations: 2.429 MB / 0.7276 GB, free: 16.35 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.927/7.437, allocations: 10.72 kB / 0.7276 GB, free: 16.35 MB / 0.6355 GB " [Timeout remaining time 652] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler_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_Discrete_Validation_Sampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.31184566707816] Failed to read output from testmodel.py, exit status != 0: 7.518639626912773 7.529043339 7.040596312 Calling exit ...