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.001017/0.001017, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001402/0.002418, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001026/0.001026, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001384/0.00241, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.01/1.01, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09238/1.102, allocations: 53.65 MB / 243.2 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-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 4.0.0-master/package.mo): time 0.782/0.782, allocations: 155.3 MB / 399.3 MB, free: 15.93 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.2972/1.079, allocations: 49.13 MB / 448.4 MB, free: 6.008 MB / 426.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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.934e-06/1.934e-06, allocations: 0 / 449.7 MB, free: 4.762 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.133e-05, allocations: 6.312 kB / 449.7 MB, free: 4.754 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001394/0.001416, allocations: 0.7016 MB / 450.4 MB, free: 4.086 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.002623, allocations: 1.127 MB / 451.5 MB, free: 2.949 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.703e-05/0.00267, allocations: 4.625 kB / 451.5 MB, free: 2.945 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 2.31e-05/0.002693, allocations: 0 / 451.5 MB, free: 2.945 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 3.961e-05/0.002733, allocations: 7.219 kB / 451.5 MB, free: 2.941 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.002937, allocations: 48.75 kB / 451.6 MB, free: 2.895 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 9.602e-05/0.003033, allocations: 43.86 kB / 451.6 MB, free: 2.859 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.864e-05/0.003111, allocations: 13.23 kB / 451.6 MB, free: 2.848 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.994e-05/0.003201, allocations: 30.14 kB / 451.6 MB, free: 2.824 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.204e-05/0.003253, allocations: 21.83 kB / 451.7 MB, free: 2.805 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.003268, allocations: 6.781 kB / 451.7 MB, free: 2.801 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.537e-05/0.003353, allocations: 20.53 kB / 451.7 MB, free: 2.781 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.003371, allocations: 10.41 kB / 451.7 MB, free: 2.773 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.003393, allocations: 8.984 kB / 451.7 MB, free: 2.766 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.003515, allocations: 43.39 kB / 451.7 MB, free: 2.727 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.436e-05/0.00353, allocations: 4 kB / 451.7 MB, free: 2.723 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.003531, allocations: 0 / 451.7 MB, free: 2.723 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.003547, allocations: 1.375 kB / 451.8 MB, free: 2.723 MB / 426.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.0004421/0.003989, allocations: 271.9 kB / 452 MB, free: 2.434 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.004022, allocations: 9.75 kB / 452 MB, free: 2.426 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.00414, allocations: 85.98 kB / 452.1 MB, free: 2.324 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.69e-05/0.004227, allocations: 113.7 kB / 452.2 MB, free: 2.188 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.004241, allocations: 8.375 kB / 452.2 MB, free: 2.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.00425, allocations: 384 / 452.2 MB, free: 2.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.004362, allocations: 61.3 kB / 452.3 MB, free: 2.113 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.004371, allocations: 0.8438 kB / 452.3 MB, free: 2.113 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.004381, allocations: 8.375 kB / 452.3 MB, free: 2.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.004387, allocations: 0.9062 kB / 452.3 MB, free: 2.105 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.975e-05/0.004416, allocations: 14.86 kB / 452.3 MB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002676/0.004684, allocations: 160.2 kB / 452.5 MB, free: 1.922 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.449e-05/0.004759, allocations: 39.44 kB / 452.5 MB, free: 1.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.497e-05/0.004773, allocations: 8.859 kB / 452.5 MB, free: 1.863 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.004795, allocations: 4 kB / 452.5 MB, free: 1.859 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.559e-05/0.004881, allocations: 63.52 kB / 452.6 MB, free: 1.785 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 1.482e-06/0.004882, allocations: 0.75 kB / 452.6 MB, free: 1.785 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001146/0.004997, allocations: 53.62 kB / 452.6 MB, free: 1.727 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.005035, allocations: 52.28 kB / 452.7 MB, free: 1.664 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.076e-05/0.005096, allocations: 114.7 kB / 452.8 MB, free: 1.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.467e-06/0.005105, allocations: 26.25 kB / 452.8 MB, free: 1.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.856e-05/0.005134, allocations: 86 kB / 452.9 MB, free: 1.422 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.005152, allocations: 15.84 kB / 452.9 MB, free: 1.406 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.005183, allocations: 25.7 kB / 452.9 MB, free: 1.375 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.061e-05/0.005254, allocations: 318.8 kB / 453.3 MB, free: 1.055 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.005268, allocations: 7.938 kB / 453.3 MB, free: 1.047 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.133e-05/0.005299, allocations: 36.73 kB / 453.3 MB, free: 1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.901e-05/0.005348, allocations: 49.67 kB / 453.4 MB, free: 0.9414 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.00535, allocations: 0 / 453.4 MB, free: 0.9414 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 6.969e-05/0.00542, allocations: 63.42 kB / 453.4 MB, free: 0.875 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.005434, allocations: 9.125 kB / 453.4 MB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.00544, allocations: 4 kB / 453.4 MB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.00545, allocations: 3.938 kB / 453.4 MB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.636e-05/0.005527, allocations: 16.67 kB / 453.4 MB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.005529, allocations: 0 / 453.4 MB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.586e-05/0.005555, allocations: 12.95 kB / 453.5 MB, free: 0.832 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-06/0.005562, allocations: 4 kB / 453.5 MB, free: 0.8281 MB / 426.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.097e-05/0.005623, allocations: 110.5 kB / 453.6 MB, free: 0.7109 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-06/0.005631, allocations: 7.984 kB / 453.6 MB, free: 0.7031 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.017e-05/0.005711, allocations: 55.28 kB / 453.6 MB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.005714, allocations: 3.938 kB / 453.6 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.005716, allocations: 0 / 453.6 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.00572, allocations: 2.922 kB / 453.6 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.005879, allocations: 206.8 kB / 453.8 MB, free: 420 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.005881, allocations: 0 / 453.8 MB, free: 420 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.833e-05/0.005909, allocations: 4 kB / 453.8 MB, free: 416 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-06/0.005917, allocations: 7.938 kB / 453.9 MB, free: 408 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.005919, allocations: 0.7188 kB / 453.9 MB, free: 408 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.005924, allocations: 0 / 453.9 MB, free: 408 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.005926, allocations: 5.047 kB / 453.9 MB, free: 404 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.005927, allocations: 0 / 453.9 MB, free: 404 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.147e-05/0.005998, allocations: 147.5 kB / 454 MB, free: 240 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.006009, allocations: 4.594 kB / 454 MB, free: 236 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.19e-05/0.006051, allocations: 9.422 kB / 454 MB, free: 228 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.679e-05/0.006077, allocations: 8 kB / 454 MB, free: 220 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.006089, allocations: 9.672 kB / 454 MB, free: 212 kB / 426.7 MB Notification: Performance of sorting global known variables: time 1.23e-05/0.006102, allocations: 9.891 kB / 454 MB, free: 200 kB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006102, allocations: 0 / 454 MB, free: 200 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001473/0.006249, allocations: 19.89 kB / 454.1 MB, free: 180 kB / 426.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.0004007/0.00665, allocations: 92.27 kB / 454.2 MB, free: 84 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.426e-05/0.006734, allocations: 40.7 kB / 454.2 MB, free: 40 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.006739, allocations: 0.625 kB / 454.2 MB, free: 40 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.455e-05/0.006764, allocations: 13.48 kB / 454.2 MB, free: 24 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.006916, allocations: 24.48 kB / 454.2 MB, free: 0 / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006587/0.007575, allocations: 139.5 kB / 454.4 MB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.399e-05/0.007609, allocations: 59.84 kB / 454.4 MB, free: 15.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 2.64e-05/0.007636, allocations: 10.14 kB / 454.4 MB, free: 15.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.709e-05/0.007683, allocations: 55.38 kB / 454.5 MB, free: 15.7 MB / 442.7 MB Notification: Performance of SimCode: time 7.72e-07/0.007683, allocations: 0.8125 kB / 454.5 MB, free: 15.7 MB / 442.7 MB Notification: Performance of Templates: time 0.002654/0.01034, allocations: 0.8702 MB / 455.4 MB, free: 14.9 MB / 442.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.5906133828684688]