Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007903/0.0007903, allocations: 76.45 kB / 19.9 MB, free: 16 kB / 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.0008943/0.0008943, allocations: 169.8 kB / 23.18 MB, free: 1.383 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.9117/0.9117, allocations: 177.2 MB / 203.6 MB, free: 5.754 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.7375/0.7375, allocations: 154.7 MB / 414.7 MB, free: 0.7539 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler") [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.001214/0.001214, allocations: 71.91 kB / 0.6195 GB, free: 13.13 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.5007/0.5019, allocations: 102 MB / 0.7191 GB, free: 23.64 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001488/0.5034, allocations: 0.6426 MB / 0.7197 GB, free: 23.25 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.5045, allocations: 1.087 MB / 0.7208 GB, free: 22.46 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.97e-05/0.5046, allocations: 0 / 0.7208 GB, free: 22.46 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.213e-05/0.5046, allocations: 5.344 kB / 0.7208 GB, free: 22.46 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.513e-05/0.5047, allocations: 9.203 kB / 0.7208 GB, free: 22.45 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.505, allocations: 40.59 kB / 0.7208 GB, free: 22.43 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.5051, allocations: 52.03 kB / 0.7209 GB, free: 22.41 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 9.697e-05/0.5052, allocations: 13.23 kB / 0.7209 GB, free: 22.4 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 8.703e-05/0.5052, allocations: 31.8 kB / 0.7209 GB, free: 22.38 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 5.256e-05/0.5053, allocations: 24.56 kB / 0.7209 GB, free: 22.37 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.5053, allocations: 3.344 kB / 0.7209 GB, free: 22.37 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.5054, allocations: 15.27 kB / 0.721 GB, free: 22.37 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.506e-05/0.5054, allocations: 8.703 kB / 0.721 GB, free: 22.37 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.5054, allocations: 22.8 kB / 0.721 GB, free: 22.35 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.5056, allocations: 60.77 kB / 0.721 GB, free: 22.33 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5056, allocations: 0 / 0.721 GB, free: 22.33 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5056, allocations: 3.938 kB / 0.7211 GB, free: 22.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.5056, allocations: 0.9688 kB / 0.7211 GB, free: 22.32 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.0004965/0.5061, allocations: 301.8 kB / 0.7213 GB, free: 22.04 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.5061, allocations: 9.5 kB / 0.7214 GB, free: 22.04 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.5062, allocations: 4.906 kB / 0.7214 GB, free: 22.04 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.347e-05/0.5063, allocations: 122.5 kB / 0.7215 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.5063, allocations: 2 kB / 0.7215 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.5063, allocations: 7.516 kB / 0.7215 GB, free: 21.89 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.5065, allocations: 62.88 kB / 0.7215 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.5065, allocations: 4.188 kB / 0.7215 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.5065, allocations: 5.125 kB / 0.7216 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.5065, allocations: 0.5625 kB / 0.7216 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.5066, allocations: 46.08 kB / 0.7216 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003519/0.507, allocations: 209.5 kB / 0.7218 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.5071, allocations: 50.28 kB / 0.7218 GB, free: 21.59 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.041e-05/0.5072, allocations: 36.39 kB / 0.7219 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.5072, allocations: 1.938 kB / 0.7219 GB, free: 21.57 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.5073, allocations: 79.27 kB / 0.722 GB, free: 21.51 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.5073, allocations: 0 / 0.722 GB, free: 21.51 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003041/0.5077, allocations: 119 kB / 0.7221 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.5077, allocations: 53.12 kB / 0.7221 GB, free: 21.4 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.81e-05/0.5077, allocations: 109.5 kB / 0.7222 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.845e-06/0.5077, allocations: 29.7 kB / 0.7223 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.556e-05/0.5078, allocations: 87.97 kB / 0.7223 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.5078, allocations: 16.66 kB / 0.7224 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.5078, allocations: 21.42 kB / 0.7224 GB, free: 21.14 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.435e-05/0.5079, allocations: 318.4 kB / 0.7227 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.384e-05/0.5079, allocations: 26.97 kB / 0.7227 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.564e-05/0.508, allocations: 48.31 kB / 0.7227 GB, free: 20.78 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.5081, allocations: 81.06 kB / 0.7228 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5081, allocations: 1.125 kB / 0.7228 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001565/0.5083, allocations: 110.2 kB / 0.7229 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.5083, allocations: 5.688 kB / 0.7229 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.5083, allocations: 1.125 kB / 0.7229 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.5083, allocations: 5.719 kB / 0.7229 GB, free: 20.67 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.428e-05/0.5084, allocations: 17.75 kB / 0.723 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.5084, allocations: 1.766 kB / 0.723 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.566e-05/0.5084, allocations: 15.34 kB / 0.723 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.5084, allocations: 2.906 kB / 0.723 GB, free: 20.66 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.274e-05/0.5085, allocations: 119.7 kB / 0.7231 GB, free: 20.54 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-06/0.5085, allocations: 6.891 kB / 0.7231 GB, free: 20.53 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001807/0.5087, allocations: 101.9 kB / 0.7232 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.5087, allocations: 4 kB / 0.7232 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.5087, allocations: 1.656 kB / 0.7232 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.5087, allocations: 4.641 kB / 0.7232 GB, free: 20.47 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.509, allocations: 297.3 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.509, allocations: 0.9375 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.795e-05/0.509, allocations: 9.297 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.509, allocations: 0 / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.509, allocations: 5.859 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.509, allocations: 0.5156 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.509, allocations: 5.156 kB / 0.7235 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.5092, allocations: 201 kB / 0.7237 GB, free: 20.05 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.117e-06/0.5092, allocations: 5.922 kB / 0.7237 GB, free: 20.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.5092, allocations: 1.562 kB / 0.7237 GB, free: 20.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.289e-05/0.5093, allocations: 8.75 kB / 0.7237 GB, free: 20.05 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.5093, allocations: 8.531 kB / 0.7237 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.5093, allocations: 3.625 kB / 0.7237 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.144e-05/0.5094, allocations: 80.56 kB / 0.7238 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.5094, allocations: 5.406 kB / 0.7238 GB, free: 19.96 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001727/0.5095, allocations: 13.8 kB / 0.7238 GB, free: 19.96 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.0001156/0.5096, allocations: 101 kB / 0.7239 GB, free: 19.87 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.5098, allocations: 68.73 kB / 0.724 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5098, allocations: 0 / 0.724 GB, free: 19.85 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.435e-05/0.5099, allocations: 32.23 kB / 0.724 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.5101, allocations: 9.641 kB / 0.724 GB, free: 19.84 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002703/0.5104, allocations: 145.9 kB / 0.7242 GB, free: 19.71 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.941e-05/0.5104, allocations: 70.52 kB / 0.7242 GB, free: 19.63 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.694e-05/0.5104, allocations: 4.656 kB / 0.7242 GB, free: 19.63 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.5105, allocations: 10.94 kB / 0.7242 GB, free: 19.62 MB / 0.6355 GB Notification: Performance of SimCode: time 5.51e-07/0.5105, allocations: 0 / 0.7242 GB, free: 19.62 MB / 0.6355 GB Notification: Performance of Templates: time 0.002549/0.513, allocations: 0.8383 MB / 0.7251 GB, free: 19.52 MB / 0.6355 GB " [Timeout remaining time 659] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.554281411925331] Failed to read output from testmodel.py, exit status != 0: 0.5198815990006551 0.530363629 0.022840569 Calling exit ...