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.001257/0.001257, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.001699/0.001699, allocations: 169.7 kB / 23.27 MB, free: 1.223 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 0.928/0.928, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.7392/0.7392, allocations: 154.9 MB / 415.1 MB, free: 264 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.114e-06/2.114e-06, allocations: 0 / 0.5211 GB, free: 456 kB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.478e-05, allocations: 6.547 kB / 0.5211 GB, free: 452 kB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001326/0.001351, allocations: 0.6581 MB / 0.5217 GB, free: 15.81 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.002395, allocations: 1.112 MB / 0.5228 GB, free: 14.69 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.482e-05/0.00244, allocations: 0.9062 kB / 0.5228 GB, free: 14.69 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.475e-05/0.002465, allocations: 3.938 kB / 0.5228 GB, free: 14.68 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 6.405e-05/0.002529, allocations: 7.156 kB / 0.5228 GB, free: 14.68 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.002773, allocations: 44.53 kB / 0.5229 GB, free: 14.64 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 7.546e-05/0.002849, allocations: 56.39 kB / 0.5229 GB, free: 14.58 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.578e-05/0.002925, allocations: 11.98 kB / 0.5229 GB, free: 14.57 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.252e-05/0.002997, allocations: 20.95 kB / 0.523 GB, free: 14.55 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.071e-05/0.003038, allocations: 19.97 kB / 0.523 GB, free: 14.53 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.003051, allocations: 4.844 kB / 0.523 GB, free: 14.53 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.003104, allocations: 23.92 kB / 0.523 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.927e-05/0.003123, allocations: 7.984 kB / 0.523 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.003142, allocations: 13.75 kB / 0.523 GB, free: 14.48 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.003244, allocations: 55.73 kB / 0.5231 GB, free: 14.43 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.003246, allocations: 0 / 0.5231 GB, free: 14.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.003246, allocations: 0 / 0.5231 GB, free: 14.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.00325, allocations: 0 / 0.5231 GB, free: 14.43 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.0003636/0.003613, allocations: 390.2 kB / 0.5235 GB, free: 14.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.003648, allocations: 16.02 kB / 0.5235 GB, free: 14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.157e-05/0.00372, allocations: 5.688 kB / 0.5235 GB, free: 13.99 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.732e-05/0.003787, allocations: 116.5 kB / 0.5236 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.003797, allocations: 5.719 kB / 0.5236 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.003804, allocations: 4.375 kB / 0.5236 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.003905, allocations: 70.86 kB / 0.5237 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.003912, allocations: 192 / 0.5237 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-06/0.003918, allocations: 1.625 kB / 0.5237 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.003923, allocations: 384 / 0.5237 GB, free: 13.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.435e-05/0.003947, allocations: 19.91 kB / 0.5237 GB, free: 13.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002492/0.004196, allocations: 246.6 kB / 0.5239 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.872e-05/0.004255, allocations: 35.06 kB / 0.524 GB, free: 13.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.00452, allocations: 27.67 kB / 0.524 GB, free: 13.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.004538, allocations: 4 kB / 0.524 GB, free: 13.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.459e-05/0.004603, allocations: 58.91 kB / 0.524 GB, free: 13.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.004604, allocations: 0 / 0.524 GB, free: 13.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.000133/0.004737, allocations: 77.56 kB / 0.5241 GB, free: 13.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.004766, allocations: 55.34 kB / 0.5242 GB, free: 13.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.807e-05/0.004834, allocations: 166.5 kB / 0.5243 GB, free: 13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.068e-06/0.004843, allocations: 25.7 kB / 0.5244 GB, free: 12.97 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.004883, allocations: 135.8 kB / 0.5245 GB, free: 12.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.004897, allocations: 11.91 kB / 0.5245 GB, free: 12.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.004933, allocations: 36.31 kB / 0.5245 GB, free: 12.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.005028, allocations: 492.1 kB / 0.525 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.462e-05/0.005043, allocations: 7.984 kB / 0.525 GB, free: 12.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.972e-05/0.005073, allocations: 43.64 kB / 0.525 GB, free: 12.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.753e-05/0.00512, allocations: 55.7 kB / 0.5251 GB, free: 12.15 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.005122, allocations: 0 / 0.5251 GB, free: 12.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.734e-05/0.005199, allocations: 75.05 kB / 0.5252 GB, free: 12.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.005211, allocations: 7.984 kB / 0.5252 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.005216, allocations: 5.094 kB / 0.5252 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.005226, allocations: 4 kB / 0.5252 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.538e-05/0.005281, allocations: 11.94 kB / 0.5252 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.005284, allocations: 0.6875 kB / 0.5252 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.6e-05/0.00531, allocations: 13.2 kB / 0.5252 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.005317, allocations: 4 kB / 0.5252 GB, free: 12.03 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 6.015e-05/0.005377, allocations: 160.6 kB / 0.5254 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.005387, allocations: 8.953 kB / 0.5254 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.376e-05/0.005481, allocations: 73.98 kB / 0.5254 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.005483, allocations: 0 / 0.5254 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.005484, allocations: 0.5938 kB / 0.5254 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.005487, allocations: 0 / 0.5254 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.005658, allocations: 301.7 kB / 0.5257 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.00566, allocations: 0 / 0.5257 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.411e-05/0.005684, allocations: 7.938 kB / 0.5257 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.005686, allocations: 3.938 kB / 0.5257 GB, free: 11.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.005692, allocations: 11.98 kB / 0.5258 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.005693, allocations: 0 / 0.5258 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.005694, allocations: 3.938 kB / 0.5258 GB, free: 11.42 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.005794, allocations: 211.9 kB / 0.526 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.0058, allocations: 3.031 kB / 0.526 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-06/0.005809, allocations: 3.938 kB / 0.526 GB, free: 11.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.029e-05/0.005849, allocations: 7.984 kB / 0.526 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.394e-05/0.005873, allocations: 7.984 kB / 0.526 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.005881, allocations: 0 / 0.526 GB, free: 11.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.071e-05/0.005912, allocations: 127.2 kB / 0.5261 GB, free: 11.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005912, allocations: 0 / 0.5261 GB, free: 11.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001517/0.006064, allocations: 13.5 kB / 0.5261 GB, free: 11.04 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.0001032/0.006167, allocations: 111.1 kB / 0.5262 GB, free: 10.92 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 7.371e-05/0.00624, allocations: 32.33 kB / 0.5263 GB, free: 10.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.006242, allocations: 0.5 kB / 0.5263 GB, free: 10.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.708e-05/0.006269, allocations: 34.66 kB / 0.5263 GB, free: 10.85 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.006433, allocations: 4 kB / 0.5263 GB, free: 10.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000338/0.006771, allocations: 142.3 kB / 0.5264 GB, free: 10.68 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.213e-05/0.006803, allocations: 63.2 kB / 0.5265 GB, free: 10.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.167e-05/0.006825, allocations: 6.438 kB / 0.5265 GB, free: 10.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.00687, allocations: 74.2 kB / 0.5266 GB, free: 10.52 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/0.006871, allocations: 0 / 0.5266 GB, free: 10.52 MB / 458.7 MB Notification: Performance of Templates: time 0.002278/0.009149, allocations: 0.923 MB / 0.5275 GB, free: 9.648 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=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.30026312218979]