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.0008673/0.0008673, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.0009746/0.0009746, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9343/0.9343, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.7784/0.7784, allocations: 154.9 MB / 415.9 MB, free: 244 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 1.332e-06/1.332e-06, allocations: 0 / 0.5219 GB, free: 1.566 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.323e-05/1.456e-05, allocations: 2.312 kB / 0.5219 GB, free: 1.562 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001127/0.001142, allocations: 0.6595 MB / 0.5225 GB, free: 0.9258 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.002364, allocations: 1.11 MB / 0.5236 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.195e-05/0.002406, allocations: 0.5 kB / 0.5236 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 2.43e-05/0.00243, allocations: 3.938 kB / 0.5236 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.002491, allocations: 9.281 kB / 0.5236 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.002727, allocations: 44.77 kB / 0.5237 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 8.079e-05/0.002808, allocations: 51.84 kB / 0.5237 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 6.914e-05/0.002877, allocations: 8.953 kB / 0.5237 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 6.717e-05/0.002944, allocations: 23.92 kB / 0.5237 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.814e-05/0.002982, allocations: 19.97 kB / 0.5238 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.002995, allocations: 4.812 kB / 0.5238 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.058e-05/0.003046, allocations: 19.98 kB / 0.5238 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.003066, allocations: 16.61 kB / 0.5238 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.003087, allocations: 11.98 kB / 0.5238 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.003188, allocations: 56.72 kB / 0.5239 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.342e-06/0.003189, allocations: 0 / 0.5239 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.11e-07/0.00319, allocations: 0 / 0.5239 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.905e-06/0.003193, allocations: 1.75 kB / 0.5239 GB, free: 15.54 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.0003532/0.003546, allocations: 392.5 kB / 0.5242 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.763e-05/0.003574, allocations: 8.531 kB / 0.5242 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/0.003652, allocations: 12.89 kB / 0.5243 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.116e-05/0.003723, allocations: 113.6 kB / 0.5244 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.003734, allocations: 8.359 kB / 0.5244 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-06/0.003741, allocations: 1.438 kB / 0.5244 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.549e-05/0.003826, allocations: 62.94 kB / 0.5244 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.003833, allocations: 4.125 kB / 0.5244 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.003839, allocations: 1 kB / 0.5244 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.003845, allocations: 4.375 kB / 0.5244 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.003869, allocations: 17.28 kB / 0.5245 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002476/0.004117, allocations: 252.4 kB / 0.5247 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.6e-05/0.004183, allocations: 39.62 kB / 0.5247 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.004201, allocations: 20.2 kB / 0.5248 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.004214, allocations: 0 / 0.5248 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.562e-05/0.00428, allocations: 58.48 kB / 0.5248 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.004281, allocations: 0 / 0.5248 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.0001444/0.004425, allocations: 69.62 kB / 0.5249 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.004463, allocations: 52.22 kB / 0.5249 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.773e-05/0.004531, allocations: 169.8 kB / 0.5251 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.004549, allocations: 30.89 kB / 0.5251 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.45e-05/0.004593, allocations: 138.8 kB / 0.5253 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.00461, allocations: 11.89 kB / 0.5253 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.004644, allocations: 31.36 kB / 0.5253 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.004753, allocations: 496.9 kB / 0.5258 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.301e-05/0.004766, allocations: 4.5 kB / 0.5258 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.261e-05/0.004799, allocations: 47.38 kB / 0.5258 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.608e-05/0.004855, allocations: 56.44 kB / 0.5259 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.004857, allocations: 3.938 kB / 0.5259 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.83e-05/0.004945, allocations: 76.3 kB / 0.5259 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.004956, allocations: 4 kB / 0.5259 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.004961, allocations: 7.938 kB / 0.526 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-06/0.00497, allocations: 0 / 0.526 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.874e-05/0.005029, allocations: 11.94 kB / 0.526 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.005033, allocations: 4 kB / 0.526 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.524e-05/0.005058, allocations: 9.297 kB / 0.526 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.005063, allocations: 4 kB / 0.526 GB, free: 13.14 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 6.672e-05/0.00513, allocations: 160.6 kB / 0.5261 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.063e-05/0.005141, allocations: 8.516 kB / 0.5261 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.006e-05/0.005231, allocations: 75.2 kB / 0.5262 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.005233, allocations: 0 / 0.5262 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.005234, allocations: 0 / 0.5262 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.005237, allocations: 4 kB / 0.5262 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.005416, allocations: 290.9 kB / 0.5265 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.005417, allocations: 0 / 0.5265 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.373e-05/0.005441, allocations: 12.92 kB / 0.5265 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.005443, allocations: 7.875 kB / 0.5265 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.005448, allocations: 2.797 kB / 0.5265 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.005449, allocations: 0 / 0.5265 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.005451, allocations: 3.984 kB / 0.5265 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.005557, allocations: 215.9 kB / 0.5267 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.84e-06/0.005561, allocations: 0 / 0.5267 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.005575, allocations: 11.92 kB / 0.5267 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.015e-05/0.005615, allocations: 4.188 kB / 0.5267 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.00564, allocations: 10.7 kB / 0.5268 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.687e-06/0.005648, allocations: 4 kB / 0.5268 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.02e-05/0.005678, allocations: 123.2 kB / 0.5269 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.005679, allocations: 4 kB / 0.5269 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001552/0.005834, allocations: 8 kB / 0.5269 GB, free: 12.16 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 8.911e-05/0.005923, allocations: 111.1 kB / 0.527 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 7.298e-05/0.005996, allocations: 32.95 kB / 0.527 GB, free: 12 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.005997, allocations: 0 / 0.527 GB, free: 12 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.669e-05/0.006024, allocations: 24.27 kB / 0.5271 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.006189, allocations: 15.38 kB / 0.5271 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003266/0.006516, allocations: 146.1 kB / 0.5272 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.37e-05/0.00655, allocations: 59.34 kB / 0.5273 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.083e-05/0.00657, allocations: 4 kB / 0.5273 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.006617, allocations: 74.2 kB / 0.5273 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/0.006618, allocations: 2.5 kB / 0.5273 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of Templates: time 0.002331/0.008949, allocations: 0.9335 MB / 0.5282 GB, free: 10.75 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.6957577681168914]