Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001412/0.001412, allocations: 79.42 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001439/0.001439, allocations: 158.5 kB / 22.45 MB, free: 5.375 MB / 14.72 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.414/1.414, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 1.146/1.146, allocations: 154.7 MB / 413.9 MB, free: 5.148 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/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_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_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.986e-06/2.986e-06, allocations: 0 / 0.6187 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.843e-05/4.142e-05, allocations: 2.281 kB / 0.6187 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00204/0.002081, allocations: 0.6555 MB / 0.6194 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.003791, allocations: 1.085 MB / 0.6204 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.517e-05/0.003836, allocations: 0 / 0.6204 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.486e-05/0.003871, allocations: 3.938 kB / 0.6204 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.339e-05/0.003934, allocations: 7.938 kB / 0.6204 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.004276, allocations: 47.77 kB / 0.6205 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.004394, allocations: 43.91 kB / 0.6205 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.004496, allocations: 8 kB / 0.6205 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.916e-05/0.004585, allocations: 35.95 kB / 0.6206 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.503e-05/0.00464, allocations: 15.92 kB / 0.6206 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.004657, allocations: 4 kB / 0.6206 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.147e-05/0.004749, allocations: 27.86 kB / 0.6206 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.326e-05/0.004792, allocations: 19.91 kB / 0.6206 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.004831, allocations: 11.94 kB / 0.6206 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.005, allocations: 59.83 kB / 0.6207 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.005003, allocations: 0 / 0.6207 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.52e-07/0.005003, allocations: 4 kB / 0.6207 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.00501, allocations: 0 / 0.6207 GB, free: 2.531 MB / 0.5294 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.0006866/0.005697, allocations: 290.2 kB / 0.621 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.00574, allocations: 12.03 kB / 0.621 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.005837, allocations: 8.859 kB / 0.621 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.005998, allocations: 117.7 kB / 0.6211 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.006012, allocations: 4.375 kB / 0.6211 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.006028, allocations: 4.375 kB / 0.6211 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.006253, allocations: 70.16 kB / 0.6212 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.006263, allocations: 192 / 0.6212 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.006275, allocations: 4.375 kB / 0.6212 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.006281, allocations: 384 / 0.6212 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.006476, allocations: 47.88 kB / 0.6212 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005179/0.006993, allocations: 212.6 kB / 0.6214 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.007186, allocations: 50.5 kB / 0.6215 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.007291, allocations: 28.95 kB / 0.6215 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.007312, allocations: 8 kB / 0.6215 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002216/0.007533, allocations: 75.31 kB / 0.6216 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.007534, allocations: 0 / 0.6216 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0004431/0.007978, allocations: 117.6 kB / 0.6217 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.428e-05/0.008062, allocations: 59.34 kB / 0.6218 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.008168, allocations: 105.8 kB / 0.6219 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.00819, allocations: 29.7 kB / 0.6219 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/0.008247, allocations: 84.14 kB / 0.622 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.008277, allocations: 19.84 kB / 0.622 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.008325, allocations: 25.7 kB / 0.622 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.008491, allocations: 310.8 kB / 0.6223 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.008592, allocations: 23.97 kB / 0.6223 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.008707, allocations: 51.42 kB / 0.6224 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.008911, allocations: 79.33 kB / 0.6225 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.008915, allocations: 4 kB / 0.6225 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003029/0.009218, allocations: 105.5 kB / 0.6226 GB, free: 432 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.009236, allocations: 7.938 kB / 0.6226 GB, free: 424 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.009244, allocations: 4 kB / 0.6226 GB, free: 420 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.009259, allocations: 0 / 0.6226 GB, free: 420 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.009372, allocations: 20.02 kB / 0.6226 GB, free: 400 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.009379, allocations: 4 kB / 0.6226 GB, free: 396 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.062e-05/0.009449, allocations: 12.48 kB / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.009462, allocations: 7.938 kB / 0.6226 GB, free: 376 kB / 0.5294 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.0001091/0.009571, allocations: 119.5 kB / 0.6227 GB, free: 252 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.009586, allocations: 11.83 kB / 0.6227 GB, free: 240 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.00989, allocations: 110 kB / 0.6228 GB, free: 120 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.009892, allocations: 0 / 0.6228 GB, free: 120 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.009899, allocations: 4 kB / 0.6228 GB, free: 116 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.009903, allocations: 4 kB / 0.6229 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.01039, allocations: 294.2 kB / 0.6231 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.0104, allocations: 0 / 0.6231 GB, free: 15.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.356e-05/0.01046, allocations: 11.98 kB / 0.6231 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.01046, allocations: 0 / 0.6231 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.01047, allocations: 4 kB / 0.6231 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01048, allocations: 3.938 kB / 0.6232 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01048, allocations: 0 / 0.6232 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.0108, allocations: 199.4 kB / 0.6233 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.796e-06/0.01081, allocations: 0 / 0.6233 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.01083, allocations: 8 kB / 0.6233 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.573e-05/0.01093, allocations: 7.984 kB / 0.6234 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.01097, allocations: 4 kB / 0.6234 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.01099, allocations: 3.984 kB / 0.6234 GB, free: 15.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.843e-05/0.01105, allocations: 83.28 kB / 0.6234 GB, free: 15.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.01105, allocations: 0 / 0.6234 GB, free: 15.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002459/0.01129, allocations: 15.94 kB / 0.6235 GB, free: 15.43 MB / 0.545 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.0001954/0.01149, allocations: 107.2 kB / 0.6236 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002634/0.01175, allocations: 60.27 kB / 0.6236 GB, free: 15.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01175, allocations: 0 / 0.6236 GB, free: 15.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.01186, allocations: 27.92 kB / 0.6236 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.01214, allocations: 16.23 kB / 0.6237 GB, free: 15.22 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.01253, allocations: 140.8 kB / 0.6238 GB, free: 15.05 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.696e-05/0.0126, allocations: 67.34 kB / 0.6239 GB, free: 14.97 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.889e-05/0.01263, allocations: 0 / 0.6239 GB, free: 14.97 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.01266, allocations: 12.5 kB / 0.6239 GB, free: 14.95 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.01266, allocations: 0 / 0.6239 GB, free: 14.95 MB / 0.545 GB Notification: Performance of Templates: time 0.00414/0.0168, allocations: 0.8319 MB / 0.6247 GB, free: 14.14 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.854557583108544] Failed to read output from testmodel.py, exit status != 0: 0.02619197405874729 0.041771799000000005 0.033629187000000005 Calling exit ...