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.001872/0.001872, allocations: 92.7 kB / 19.44 MB, free: 324 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.002349/0.002349, allocations: 161.7 kB / 22.75 MB, free: 1.656 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 1.473/1.473, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 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-535:34: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-535:42: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.278/1.278, allocations: 154.8 MB / 414.4 MB, free: 460 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 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: Performance of FrontEnd - loaded program: time 3.777e-06/3.777e-06, allocations: 0 / 0.5198 GB, free: 1.242 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.878e-05/5.256e-05, allocations: 10.81 kB / 0.5198 GB, free: 1.234 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002239/0.002292, allocations: 0.6478 MB / 0.5205 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.004078, allocations: 1.087 MB / 0.5215 GB, free: 15.52 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.613e-05/0.004125, allocations: 0.9844 kB / 0.5215 GB, free: 15.52 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.779e-05/0.004152, allocations: 0 / 0.5215 GB, free: 15.52 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 8.062e-05/0.004233, allocations: 10 kB / 0.5215 GB, free: 15.51 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.004571, allocations: 52.61 kB / 0.5216 GB, free: 15.46 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.004692, allocations: 47.84 kB / 0.5216 GB, free: 15.41 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.644e-05/0.004789, allocations: 9.219 kB / 0.5216 GB, free: 15.4 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.004902, allocations: 23.97 kB / 0.5217 GB, free: 15.38 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.958e-05/0.004961, allocations: 19.97 kB / 0.5217 GB, free: 15.36 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.004981, allocations: 8.562 kB / 0.5217 GB, free: 15.35 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.601e-05/0.005057, allocations: 19.92 kB / 0.5217 GB, free: 15.33 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.005084, allocations: 9.812 kB / 0.5217 GB, free: 15.32 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 4.829e-05/0.005132, allocations: 19.97 kB / 0.5217 GB, free: 15.3 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.005307, allocations: 63.77 kB / 0.5218 GB, free: 15.24 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.00531, allocations: 0 / 0.5218 GB, free: 15.24 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.005311, allocations: 0 / 0.5218 GB, free: 15.24 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.005316, allocations: 1.719 kB / 0.5218 GB, free: 15.24 MB / 458.7 MB 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.0007225/0.006038, allocations: 294.2 kB / 0.5221 GB, free: 14.92 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.006084, allocations: 9.406 kB / 0.5221 GB, free: 14.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.00623, allocations: 8.875 kB / 0.5221 GB, free: 14.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.006368, allocations: 117.7 kB / 0.5222 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.006383, allocations: 384 / 0.5222 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.006394, allocations: 4.906 kB / 0.5222 GB, free: 14.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.006618, allocations: 62.98 kB / 0.5223 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.006628, allocations: 1.656 kB / 0.5223 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.006642, allocations: 4.359 kB / 0.5223 GB, free: 14.69 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.006646, allocations: 384 / 0.5223 GB, free: 14.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.006864, allocations: 49.19 kB / 0.5223 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.007352, allocations: 216.5 kB / 0.5225 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.007538, allocations: 54.02 kB / 0.5226 GB, free: 14.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.007646, allocations: 28.95 kB / 0.5226 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.007673, allocations: 4 kB / 0.5226 GB, free: 14.31 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.007947, allocations: 79.25 kB / 0.5227 GB, free: 14.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.007949, allocations: 0 / 0.5227 GB, free: 14.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004782/0.008427, allocations: 118.2 kB / 0.5228 GB, free: 14.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.008485, allocations: 55.95 kB / 0.5229 GB, free: 14.03 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.008592, allocations: 106.4 kB / 0.523 GB, free: 13.92 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.008617, allocations: 26.64 kB / 0.523 GB, free: 13.89 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.008697, allocations: 92.06 kB / 0.5231 GB, free: 13.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.008724, allocations: 15.91 kB / 0.5231 GB, free: 13.78 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.963e-05/0.008773, allocations: 23.19 kB / 0.5231 GB, free: 13.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.008977, allocations: 318.8 kB / 0.5234 GB, free: 13.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.009079, allocations: 24.48 kB / 0.5234 GB, free: 13.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.009208, allocations: 52.22 kB / 0.5235 GB, free: 13.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.009428, allocations: 77.95 kB / 0.5236 GB, free: 13.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.00943, allocations: 3.938 kB / 0.5236 GB, free: 13.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003085/0.009738, allocations: 115.6 kB / 0.5237 GB, free: 13.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.009757, allocations: 7.938 kB / 0.5237 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.009765, allocations: 4.047 kB / 0.5237 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.009792, allocations: 6.453 kB / 0.5237 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.00991, allocations: 15.98 kB / 0.5237 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.009917, allocations: 0 / 0.5237 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.994e-05/0.009987, allocations: 7.984 kB / 0.5237 GB, free: 13.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.01, allocations: 7.938 kB / 0.5237 GB, free: 13.09 MB / 458.7 MB 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.0001126/0.01011, allocations: 113.8 kB / 0.5238 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.01014, allocations: 18.64 kB / 0.5239 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000302/0.01044, allocations: 98.08 kB / 0.5239 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01045, allocations: 4 kB / 0.524 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.01045, allocations: 0 / 0.524 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.01045, allocations: 0 / 0.524 GB, free: 12.85 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005041/0.01096, allocations: 299.2 kB / 0.5242 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01096, allocations: 0 / 0.5242 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-05/0.01102, allocations: 12.92 kB / 0.5242 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.01103, allocations: 0 / 0.5242 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.01104, allocations: 4.875 kB / 0.5243 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.01104, allocations: 0 / 0.5243 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01104, allocations: 4 kB / 0.5243 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.01139, allocations: 201.2 kB / 0.5244 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.128e-05/0.0114, allocations: 3.984 kB / 0.5245 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.01142, allocations: 0 / 0.5245 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.01154, allocations: 18.61 kB / 0.5245 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.01158, allocations: 0 / 0.5245 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.0116, allocations: 8 kB / 0.5245 GB, free: 12.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.712e-05/0.01167, allocations: 87.27 kB / 0.5246 GB, free: 12.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01167, allocations: 0 / 0.5246 GB, free: 12.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000251/0.01192, allocations: 12 kB / 0.5246 GB, free: 12.16 MB / 458.7 MB 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.0002022/0.01212, allocations: 98.34 kB / 0.5247 GB, free: 12.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002849/0.0124, allocations: 67.88 kB / 0.5247 GB, free: 12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01241, allocations: 0 / 0.5247 GB, free: 12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.01253, allocations: 33.48 kB / 0.5248 GB, free: 11.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.01283, allocations: 19.86 kB / 0.5248 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004129/0.01324, allocations: 132.4 kB / 0.5249 GB, free: 11.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.696e-05/0.01333, allocations: 75.19 kB / 0.525 GB, free: 11.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.962e-05/0.01336, allocations: 0 / 0.525 GB, free: 11.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.0134, allocations: 12.5 kB / 0.525 GB, free: 11.69 MB / 458.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0134, allocations: 0 / 0.525 GB, free: 11.69 MB / 458.7 MB Notification: Performance of Templates: time 0.00401/0.01741, allocations: 0.8392 MB / 0.5258 GB, free: 10.89 MB / 458.7 MB " [Timeout remaining time 660] 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: 5.850569044006988]