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.00241/0.00241, allocations: 93.47 kB / 19.44 MB, free: 332 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.002852/0.002852, allocations: 173.2 kB / 22.76 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.609/1.609, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.355/1.355, allocations: 154.8 MB / 414.4 MB, free: 480 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 2.504e-06/2.504e-06, allocations: 0.6562 kB / 0.5198 GB, free: 2.344 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.237e-05/3.487e-05, allocations: 6.266 kB / 0.5198 GB, free: 2.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001932/0.001967, allocations: 0.6591 MB / 0.5205 GB, free: 1.703 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.00383, allocations: 1.091 MB / 0.5215 GB, free: 0.6016 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.901e-05/0.003879, allocations: 0 / 0.5215 GB, free: 0.6016 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.443e-05/0.003914, allocations: 3.938 kB / 0.5215 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.182e-05/0.003996, allocations: 8.484 kB / 0.5216 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.004328, allocations: 48.27 kB / 0.5216 GB, free: 0.543 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.004449, allocations: 51.84 kB / 0.5217 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.004558, allocations: 12.92 kB / 0.5217 GB, free: 492 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.676e-05/0.004655, allocations: 23.98 kB / 0.5217 GB, free: 468 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.581e-05/0.004711, allocations: 21.25 kB / 0.5217 GB, free: 448 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.00473, allocations: 4 kB / 0.5217 GB, free: 444 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.543e-05/0.004805, allocations: 19.98 kB / 0.5217 GB, free: 424 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.594e-05/0.004831, allocations: 7.984 kB / 0.5217 GB, free: 416 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.039e-05/0.004872, allocations: 20.45 kB / 0.5218 GB, free: 396 kB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.00505, allocations: 64.75 kB / 0.5218 GB, free: 332 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.005055, allocations: 0 / 0.5218 GB, free: 332 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.005056, allocations: 0 / 0.5218 GB, free: 332 kB / 490.7 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.005061, allocations: 1.906 kB / 0.5218 GB, free: 332 kB / 490.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.000719/0.00578, allocations: 388.2 kB / 0.5222 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.005824, allocations: 12.03 kB / 0.5222 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.005945, allocations: 9.891 kB / 0.5222 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.006082, allocations: 116.6 kB / 0.5223 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.006097, allocations: 4.375 kB / 0.5223 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.006111, allocations: 9.125 kB / 0.5223 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.006288, allocations: 59.33 kB / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.006297, allocations: 192 / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.006311, allocations: 4.375 kB / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.006316, allocations: 384 / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001459/0.006462, allocations: 33.36 kB / 0.5224 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.006951, allocations: 271.7 kB / 0.5227 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.007121, allocations: 55.83 kB / 0.5227 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.696e-05/0.007208, allocations: 32.52 kB / 0.5228 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.007233, allocations: 0 / 0.5228 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.007413, allocations: 83.84 kB / 0.5229 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.007414, allocations: 0 / 0.5229 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.0003588/0.007773, allocations: 101.7 kB / 0.523 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.007829, allocations: 59.34 kB / 0.523 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.007966, allocations: 166.2 kB / 0.5232 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.007991, allocations: 29.7 kB / 0.5232 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.008081, allocations: 139.3 kB / 0.5233 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.008106, allocations: 11.91 kB / 0.5233 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.367e-05/0.008159, allocations: 28.2 kB / 0.5234 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002816/0.008441, allocations: 0.4923 MB / 0.5238 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.96e-05/0.008521, allocations: 25.06 kB / 0.5239 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.008624, allocations: 55.7 kB / 0.5239 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.008801, allocations: 83.61 kB / 0.524 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.008803, allocations: 0.5625 kB / 0.524 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002303/0.009033, allocations: 94.69 kB / 0.5241 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.00905, allocations: 8.438 kB / 0.5241 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.009059, allocations: 4 kB / 0.5241 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.009076, allocations: 1.031 kB / 0.5241 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.431e-05/0.009171, allocations: 11.94 kB / 0.5241 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.009177, allocations: 1.219 kB / 0.5241 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.215e-05/0.009229, allocations: 7.984 kB / 0.5241 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.009244, allocations: 8 kB / 0.5241 GB, free: 13.73 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 0.0001386/0.009382, allocations: 161.1 kB / 0.5243 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.00941, allocations: 17.3 kB / 0.5243 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002439/0.009654, allocations: 94.03 kB / 0.5244 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.009656, allocations: 0 / 0.5244 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.009661, allocations: 3.984 kB / 0.5244 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.009666, allocations: 4.516 kB / 0.5244 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.01011, allocations: 342.2 kB / 0.5247 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.01011, allocations: 1.156 kB / 0.5247 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.045e-05/0.01016, allocations: 11.92 kB / 0.5247 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.01016, allocations: 0 / 0.5247 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.01018, allocations: 5.406 kB / 0.5247 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.01018, allocations: 0 / 0.5247 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01018, allocations: 0 / 0.5247 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.01048, allocations: 240.4 kB / 0.525 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-06/0.01049, allocations: 0 / 0.525 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.01051, allocations: 9.297 kB / 0.525 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-05/0.01059, allocations: 8 kB / 0.525 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.01064, allocations: 7.984 kB / 0.525 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.01066, allocations: 6.75 kB / 0.525 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.802e-05/0.01073, allocations: 127.2 kB / 0.5251 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.01073, allocations: 0 / 0.5251 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002319/0.01097, allocations: 12 kB / 0.5251 GB, free: 12.63 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.000182/0.01115, allocations: 103.2 kB / 0.5252 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002244/0.01137, allocations: 62.19 kB / 0.5253 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01137, allocations: 0 / 0.5253 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.819e-05/0.01147, allocations: 35.61 kB / 0.5253 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.01175, allocations: 20.83 kB / 0.5253 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003914/0.01214, allocations: 144.1 kB / 0.5255 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.945e-05/0.01222, allocations: 67.34 kB / 0.5256 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.241e-05/0.01225, allocations: 7.984 kB / 0.5256 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.01228, allocations: 9.219 kB / 0.5256 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/0.01228, allocations: 0.625 kB / 0.5256 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of Templates: time 0.004162/0.01644, allocations: 0.8386 MB / 0.5264 GB, free: 11.34 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: 6.168384377029724]