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.000987/0.000987, allocations: 93.06 kB / 19.65 MB, free: 276 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.0009264/0.0009264, allocations: 169 kB / 23.02 MB, free: 1.547 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.007/1.007, allocations: 177.1 MB / 203.4 MB, free: 5.629 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-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 0.8097/0.8097, allocations: 154.9 MB / 414.8 MB, free: 388 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: 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 2.304e-06/2.304e-06, allocations: 3.938 kB / 0.5207 GB, free: 1.832 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.976e-05, allocations: 6.438 kB / 0.5207 GB, free: 1.828 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001568/0.001598, allocations: 0.6529 MB / 0.5213 GB, free: 1.195 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.00277, allocations: 1.119 MB / 0.5224 GB, free: 68 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.543e-05/0.002816, allocations: 0 / 0.5224 GB, free: 68 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.473e-05/0.002851, allocations: 7.938 kB / 0.5224 GB, free: 60 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 7.816e-05/0.002929, allocations: 8.859 kB / 0.5224 GB, free: 52 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.00326, allocations: 46.52 kB / 0.5225 GB, free: 8 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.003365, allocations: 43.88 kB / 0.5225 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.263e-05/0.003457, allocations: 15.98 kB / 0.5225 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 8.66e-05/0.003544, allocations: 27.89 kB / 0.5225 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.763e-05/0.003591, allocations: 15.97 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.003608, allocations: 4 kB / 0.5226 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.811e-05/0.003676, allocations: 23.88 kB / 0.5226 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.0037, allocations: 15.97 kB / 0.5226 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.003729, allocations: 13.39 kB / 0.5226 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.00386, allocations: 51.81 kB / 0.5227 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.003863, allocations: 0 / 0.5227 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.042e-06/0.003864, allocations: 0.5625 kB / 0.5227 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.003869, allocations: 0 / 0.5227 GB, free: 15.8 MB / 0.4948 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.0004646/0.004334, allocations: 389.5 kB / 0.523 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.004376, allocations: 13.22 kB / 0.523 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.004504, allocations: 8.891 kB / 0.5231 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.398e-05/0.004598, allocations: 108.6 kB / 0.5232 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.004611, allocations: 4.938 kB / 0.5232 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.004624, allocations: 9.281 kB / 0.5232 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.004757, allocations: 62.94 kB / 0.5232 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.004764, allocations: 192 / 0.5232 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.004777, allocations: 10.08 kB / 0.5232 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.004783, allocations: 384 / 0.5232 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.719e-05/0.00482, allocations: 15.92 kB / 0.5233 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004137/0.005234, allocations: 267.7 kB / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.453e-05/0.005328, allocations: 48.17 kB / 0.5236 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.391e-05/0.005352, allocations: 15.62 kB / 0.5236 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.005369, allocations: 0.6875 kB / 0.5236 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.928e-05/0.005458, allocations: 69.11 kB / 0.5236 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.00546, allocations: 1.188 kB / 0.5236 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.0001803/0.00564, allocations: 69.62 kB / 0.5237 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.005683, allocations: 55.39 kB / 0.5238 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.00604, allocations: 163.4 kB / 0.5239 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.006052, allocations: 29.7 kB / 0.5239 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.7e-05/0.006099, allocations: 138.8 kB / 0.5241 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.006117, allocations: 11.91 kB / 0.5241 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.006152, allocations: 28.16 kB / 0.5241 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.006264, allocations: 0.4884 MB / 0.5246 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.162e-05/0.006286, allocations: 8.844 kB / 0.5246 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.964e-05/0.006326, allocations: 46.72 kB / 0.5246 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.737e-05/0.006393, allocations: 65.44 kB / 0.5247 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.006396, allocations: 4.5 kB / 0.5247 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001048/0.006501, allocations: 69.56 kB / 0.5248 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.006517, allocations: 12.84 kB / 0.5248 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.006523, allocations: 0 / 0.5248 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.006538, allocations: 0 / 0.5248 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.25e-05/0.00662, allocations: 18.73 kB / 0.5248 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.006625, allocations: 4 kB / 0.5248 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.006653, allocations: 7.938 kB / 0.5248 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.006663, allocations: 4 kB / 0.5248 GB, free: 13.36 MB / 0.4948 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 7.558e-05/0.006738, allocations: 160.6 kB / 0.525 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.00675, allocations: 11.89 kB / 0.525 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.006879, allocations: 76.81 kB / 0.5251 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.006881, allocations: 0 / 0.5251 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.006885, allocations: 3.984 kB / 0.5251 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.006888, allocations: 0 / 0.5251 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.007102, allocations: 321.4 kB / 0.5254 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.007103, allocations: 4 kB / 0.5254 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.013e-05/0.007134, allocations: 4 kB / 0.5254 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.007137, allocations: 1.312 kB / 0.5254 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.007144, allocations: 0 / 0.5254 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.007147, allocations: 3.984 kB / 0.5254 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.007148, allocations: 3.938 kB / 0.5254 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.007263, allocations: 216.3 kB / 0.5256 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-06/0.00727, allocations: 5.031 kB / 0.5256 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.007287, allocations: 4 kB / 0.5256 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.321e-05/0.00733, allocations: 7.984 kB / 0.5256 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.007368, allocations: 9 kB / 0.5256 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.00738, allocations: 3.984 kB / 0.5256 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.723e-05/0.007418, allocations: 132 kB / 0.5257 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.007418, allocations: 0 / 0.5257 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001632/0.007581, allocations: 12.66 kB / 0.5258 GB, free: 12.33 MB / 0.4948 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.0001272/0.007708, allocations: 106.6 kB / 0.5259 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001049/0.007813, allocations: 39.61 kB / 0.5259 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.007815, allocations: 0 / 0.5259 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.3e-05/0.007848, allocations: 19.69 kB / 0.5259 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.008037, allocations: 17.33 kB / 0.5259 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005159/0.008552, allocations: 144.7 kB / 0.5261 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.605e-05/0.008589, allocations: 59.3 kB / 0.5261 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.454e-05/0.008613, allocations: 7.984 kB / 0.5261 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.008639, allocations: 8.5 kB / 0.5261 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of SimCode: time 7.32e-07/0.00864, allocations: 0.8438 kB / 0.5261 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of Templates: time 0.002833/0.01147, allocations: 0.8975 MB / 0.527 GB, free: 11.04 MB / 0.4948 GB " [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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7501260209828615]