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.001329/0.001329, allocations: 82.64 kB / 19.16 MB, free: 2.535 MB / 14.72 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.001388/0.001388, allocations: 167 kB / 22.44 MB, free: 5.336 MB / 14.72 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 1.419/1.419, allocations: 177.2 MB / 202.8 MB, free: 9.199 MB / 190.1 MB " [Timeout remaining time 178] 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:190: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:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 1.177/1.177, allocations: 155 MB / 414.2 MB, free: 4.953 MB / 382.1 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 178] 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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_dev_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.002054/0.002054, allocations: 67.34 kB / 0.6191 GB, free: 4.18 MB / 0.5294 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.5849/0.5869, allocations: 102 MB / 0.7187 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002131/0.5891, allocations: 0.6511 MB / 0.7194 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.5906, allocations: 1.084 MB / 0.7204 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.736e-05/0.5906, allocations: 0 / 0.7204 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.241e-05/0.5907, allocations: 4.594 kB / 0.7204 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.505e-05/0.5907, allocations: 9.812 kB / 0.7204 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.5911, allocations: 39.69 kB / 0.7205 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.5912, allocations: 57.41 kB / 0.7205 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.5913, allocations: 5.078 kB / 0.7205 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.5914, allocations: 27.92 kB / 0.7205 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/0.5915, allocations: 19.28 kB / 0.7206 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.5915, allocations: 3.625 kB / 0.7206 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.5916, allocations: 24.12 kB / 0.7206 GB, free: 496 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.495e-05/0.5916, allocations: 12.95 kB / 0.7206 GB, free: 488 kB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.593e-05/0.5916, allocations: 18.3 kB / 0.7206 GB, free: 476 kB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.5918, allocations: 72.38 kB / 0.7207 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.5918, allocations: 0 / 0.7207 GB, free: 444 kB / 0.6075 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5918, allocations: 4 kB / 0.7207 GB, free: 440 kB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.5918, allocations: 1.125 kB / 0.7207 GB, free: 440 kB / 0.6075 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.0005858/0.5924, allocations: 293.4 kB / 0.721 GB, free: 152 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.5925, allocations: 11.83 kB / 0.721 GB, free: 152 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.5926, allocations: 8.688 kB / 0.721 GB, free: 148 kB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.533e-05/0.5927, allocations: 121.6 kB / 0.7211 GB, free: 4 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.5927, allocations: 6 kB / 0.7211 GB, free: 0 / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.5927, allocations: 3.484 kB / 0.7211 GB, free: 0 / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.593, allocations: 67.09 kB / 0.7212 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.593, allocations: 192 / 0.7212 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.593, allocations: 5.906 kB / 0.7212 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.593, allocations: 0 / 0.7212 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.5932, allocations: 42.42 kB / 0.7212 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004884/0.5937, allocations: 217 kB / 0.7214 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.5939, allocations: 50.69 kB / 0.7215 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.594, allocations: 35.91 kB / 0.7215 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.5941, allocations: 0.7031 kB / 0.7215 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.5943, allocations: 81.12 kB / 0.7216 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.5943, allocations: 0 / 0.7216 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of matching and sorting (n=6): time 0.0005313/0.5949, allocations: 118.5 kB / 0.7217 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.5949, allocations: 53.56 kB / 0.7218 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.5951, allocations: 108 kB / 0.7219 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.5951, allocations: 31.14 kB / 0.7219 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.5952, allocations: 82.94 kB / 0.722 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.5952, allocations: 16.12 kB / 0.722 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-05/0.5952, allocations: 21.95 kB / 0.722 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.5954, allocations: 313.6 kB / 0.7223 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.5955, allocations: 26.92 kB / 0.7223 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.5957, allocations: 52.11 kB / 0.7224 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.5959, allocations: 82.2 kB / 0.7225 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5959, allocations: 0 / 0.7225 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003666/0.5963, allocations: 107.2 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5963, allocations: 5.281 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.5963, allocations: 1.219 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.5964, allocations: 5.75 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.5965, allocations: 13.38 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.5965, allocations: 2.031 kB / 0.7226 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.5966, allocations: 15.84 kB / 0.7226 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.5966, allocations: 2.156 kB / 0.7226 GB, free: 14.77 MB / 0.6231 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 0.0001421/0.5968, allocations: 127.6 kB / 0.7227 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.5968, allocations: 6.453 kB / 0.7227 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003734/0.5972, allocations: 109.1 kB / 0.7228 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.5972, allocations: 0.8125 kB / 0.7228 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5972, allocations: 5.109 kB / 0.7228 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5972, allocations: 0.6562 kB / 0.7228 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.5977, allocations: 297.1 kB / 0.7231 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5977, allocations: 5.219 kB / 0.7231 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.255e-05/0.5978, allocations: 13.44 kB / 0.7231 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.5978, allocations: 0 / 0.7231 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.5978, allocations: 1.828 kB / 0.7232 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.5978, allocations: 9.875 kB / 0.7232 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5978, allocations: 0 / 0.7232 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000413/0.5982, allocations: 196.5 kB / 0.7233 GB, free: 14.16 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 1.596e-05/0.5983, allocations: 8.406 kB / 0.7234 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.5983, allocations: 0 / 0.7234 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.5984, allocations: 7.672 kB / 0.7234 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.5984, allocations: 4.844 kB / 0.7234 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.5985, allocations: 3.125 kB / 0.7234 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 6.97e-05/0.5985, allocations: 90.16 kB / 0.7235 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9e-08/0.5985, allocations: 0 / 0.7235 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003043/0.5988, allocations: 14.25 kB / 0.7235 GB, free: 14.07 MB / 0.6231 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.0001686/0.599, allocations: 101.7 kB / 0.7236 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003261/0.5993, allocations: 64.44 kB / 0.7236 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5993, allocations: 0 / 0.7236 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.5995, allocations: 40.61 kB / 0.7237 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.5998, allocations: 7.359 kB / 0.7237 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.6002, allocations: 136.1 kB / 0.7238 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.501e-05/0.6003, allocations: 64.61 kB / 0.7239 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 3.096e-05/0.6003, allocations: 4.672 kB / 0.7239 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.6004, allocations: 12.83 kB / 0.7239 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of SimCode: time 4.91e-07/0.6004, allocations: 0 / 0.7239 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of Templates: time 0.004637/0.605, allocations: 0.8343 MB / 0.7247 GB, free: 13.62 MB / 0.6231 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 660] (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 & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.107301926240325] Failed to read output from testmodel.py, exit status != 0: 0.6143011711537838 0.631475092 0.035987259 Calling exit ...