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.000728/0.000728, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007243/0.0007243, allocations: 178.2 kB / 23.21 MB, free: 1.352 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.8333/0.8333, allocations: 177.1 MB / 203.5 MB, free: 5.746 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-531:190: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-531:198: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.6685/0.6685, allocations: 154.5 MB / 414.5 MB, free: 0.8516 MB / 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 3.807e-06/3.807e-06, allocations: 3.938 kB / 0.6192 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.066e-05/3.447e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00219/0.002225, allocations: 0.6545 MB / 0.6199 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.004116, allocations: 1.081 MB / 0.6209 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.069e-05/0.004187, allocations: 0 / 0.6209 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.664e-05/0.004223, allocations: 3.938 kB / 0.6209 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.849e-05/0.004302, allocations: 15.86 kB / 0.621 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.00463, allocations: 39.78 kB / 0.621 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.235e-05/0.004722, allocations: 55.83 kB / 0.6211 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.262e-05/0.004815, allocations: 4 kB / 0.6211 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.414e-05/0.004899, allocations: 27.97 kB / 0.6211 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.246e-05/0.004941, allocations: 19.91 kB / 0.6211 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.004958, allocations: 4 kB / 0.6211 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.959e-05/0.005017, allocations: 23.92 kB / 0.6211 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.07e-05/0.005038, allocations: 11.98 kB / 0.6211 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.255e-05/0.005071, allocations: 15.92 kB / 0.6212 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.005209, allocations: 63.83 kB / 0.6212 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.005212, allocations: 0 / 0.6212 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.743e-06/0.005214, allocations: 4 kB / 0.6212 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.005219, allocations: 0 / 0.6212 GB, free: 11.21 MB / 0.5886 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.0004506/0.00567, allocations: 290.2 kB / 0.6215 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.005704, allocations: 13.41 kB / 0.6215 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.472e-05/0.005779, allocations: 8.922 kB / 0.6215 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.706e-05/0.005856, allocations: 109.8 kB / 0.6216 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.005866, allocations: 384 / 0.6216 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.005876, allocations: 4.375 kB / 0.6216 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.006015, allocations: 70.16 kB / 0.6217 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.006023, allocations: 192 / 0.6217 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.006032, allocations: 384 / 0.6217 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.006037, allocations: 4.375 kB / 0.6217 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.474e-05/0.006132, allocations: 43.89 kB / 0.6217 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003107/0.006443, allocations: 216.5 kB / 0.622 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.006544, allocations: 46.56 kB / 0.622 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.953e-05/0.006593, allocations: 36.89 kB / 0.622 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.006612, allocations: 0 / 0.622 GB, free: 10.28 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.006771, allocations: 79.31 kB / 0.6221 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.006772, allocations: 3.938 kB / 0.6221 GB, free: 10.19 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0002541/0.007026, allocations: 121.6 kB / 0.6222 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.00706, allocations: 51.41 kB / 0.6223 GB, free: 10 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.878e-05/0.007119, allocations: 118 kB / 0.6224 GB, free: 9.875 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.007129, allocations: 29.7 kB / 0.6224 GB, free: 9.84 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.007163, allocations: 88.08 kB / 0.6225 GB, free: 9.75 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.00718, allocations: 15.91 kB / 0.6225 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.00721, allocations: 21.7 kB / 0.6225 GB, free: 9.707 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.718e-05/0.007277, allocations: 318.8 kB / 0.6228 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.812e-05/0.007325, allocations: 23.97 kB / 0.6229 GB, free: 9.363 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.666e-05/0.007382, allocations: 47.42 kB / 0.6229 GB, free: 9.305 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.007489, allocations: 83.33 kB / 0.623 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.007492, allocations: 0 / 0.623 GB, free: 9.211 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001334/0.007625, allocations: 105.5 kB / 0.6231 GB, free: 9.102 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.007636, allocations: 7.938 kB / 0.6231 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.007641, allocations: 96 / 0.6231 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.007652, allocations: 8 kB / 0.6231 GB, free: 9.086 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.275e-05/0.007714, allocations: 15.92 kB / 0.6231 GB, free: 9.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.00772, allocations: 4 kB / 0.6231 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.007787, allocations: 7.984 kB / 0.6231 GB, free: 9.059 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.007796, allocations: 4 kB / 0.6231 GB, free: 9.055 MB / 0.5886 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.719e-05/0.007863, allocations: 118.8 kB / 0.6232 GB, free: 8.93 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.007874, allocations: 7.891 kB / 0.6233 GB, free: 8.922 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.00805, allocations: 110.1 kB / 0.6234 GB, free: 8.805 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.008053, allocations: 0 / 0.6234 GB, free: 8.805 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.008057, allocations: 0 / 0.6234 GB, free: 8.805 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.008061, allocations: 3.938 kB / 0.6234 GB, free: 8.801 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.008333, allocations: 302.1 kB / 0.6237 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.008334, allocations: 0 / 0.6237 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.714e-05/0.008371, allocations: 7.984 kB / 0.6237 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.008373, allocations: 0 / 0.6237 GB, free: 8.461 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.00838, allocations: 4 kB / 0.6237 GB, free: 8.457 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.008381, allocations: 4 kB / 0.6237 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.008382, allocations: 0 / 0.6237 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.008529, allocations: 203.7 kB / 0.6239 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-06/0.008535, allocations: 64 / 0.6239 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.008546, allocations: 4 kB / 0.6239 GB, free: 8.234 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.955e-05/0.008596, allocations: 11.98 kB / 0.6239 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.008633, allocations: 4 kB / 0.6239 GB, free: 8.219 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.008645, allocations: 4 kB / 0.6239 GB, free: 8.215 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.931e-05/0.008675, allocations: 87.27 kB / 0.624 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008675, allocations: 0 / 0.624 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001576/0.008832, allocations: 19.94 kB / 0.624 GB, free: 8.109 MB / 0.5886 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.0001302/0.008963, allocations: 103.3 kB / 0.6241 GB, free: 8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001487/0.009111, allocations: 63.89 kB / 0.6241 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.009113, allocations: 0 / 0.6241 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.594e-05/0.009169, allocations: 32.11 kB / 0.6242 GB, free: 7.906 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.009351, allocations: 17.05 kB / 0.6242 GB, free: 7.895 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002754/0.009626, allocations: 158.6 kB / 0.6243 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.574e-05/0.009672, allocations: 67.34 kB / 0.6244 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.275e-05/0.009695, allocations: 8.5 kB / 0.6244 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of SimCode: time 5.31e-07/0.009695, allocations: 0 / 0.6244 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of Templates: time 0.001694/0.01139, allocations: 0.8846 MB / 0.6253 GB, free: 6.734 MB / 0.5886 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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.869438232854009] Failed to read output from testmodel.py, exit status != 0: 0.016988610848784447 0.024688914000000003 0.017811315 Calling exit ...