Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0009106/0.0009106, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001765/0.001765, allocations: 177 kB / 23.36 MB, free: 1.129 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.9227/0.9227, allocations: 177.1 MB / 203.8 MB, free: 5.496 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.8086/0.8086, allocations: 154.9 MB / 415.1 MB, free: 232 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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 480.3 MB, free: 6.594 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.418e-05, allocations: 3.812 kB / 480.3 MB, free: 6.59 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001346/0.00137, allocations: 0.6782 MB / 481 MB, free: 5.945 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.002484, allocations: 1.133 MB / 482.1 MB, free: 4.809 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.248e-05/0.002527, allocations: 4 kB / 482.1 MB, free: 4.805 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 2.429e-05/0.002551, allocations: 5.25 kB / 482.1 MB, free: 4.801 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 6.317e-05/0.002614, allocations: 10.39 kB / 482.2 MB, free: 4.793 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.002865, allocations: 45.14 kB / 482.2 MB, free: 4.75 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 8.908e-05/0.002954, allocations: 58.5 kB / 482.3 MB, free: 4.703 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.424e-05/0.003018, allocations: 4 kB / 482.3 MB, free: 4.699 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.654e-05/0.003095, allocations: 33.94 kB / 482.3 MB, free: 4.668 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.603e-05/0.003191, allocations: 18.38 kB / 482.3 MB, free: 4.652 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.003204, allocations: 5.219 kB / 482.3 MB, free: 4.648 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.877e-05/0.003262, allocations: 19.98 kB / 482.3 MB, free: 4.629 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.907e-05/0.003281, allocations: 5.641 kB / 482.3 MB, free: 4.625 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.394e-05/0.003305, allocations: 22.17 kB / 482.4 MB, free: 4.605 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.00341, allocations: 62.5 kB / 482.4 MB, free: 4.547 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.003413, allocations: 3.984 kB / 482.4 MB, free: 4.543 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.003414, allocations: 1.438 kB / 482.4 MB, free: 4.543 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.705e-06/0.003417, allocations: 0 / 482.4 MB, free: 4.543 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003298/0.003746, allocations: 260.8 kB / 482.7 MB, free: 4.266 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.003775, allocations: 8.031 kB / 482.7 MB, free: 4.258 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.814e-05/0.003853, allocations: 18.02 kB / 482.7 MB, free: 4.242 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.515e-05/0.003918, allocations: 105.8 kB / 482.8 MB, free: 4.113 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.003929, allocations: 4.375 kB / 482.8 MB, free: 4.109 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.00394, allocations: 8.312 kB / 482.8 MB, free: 4.102 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.071e-05/0.00403, allocations: 63.55 kB / 482.9 MB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.004036, allocations: 0.9375 kB / 482.9 MB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.004043, allocations: 4.375 kB / 482.9 MB, free: 4.027 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.004048, allocations: 3.219 kB / 482.9 MB, free: 4.027 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.44e-05/0.004072, allocations: 13.48 kB / 482.9 MB, free: 4.016 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.004303, allocations: 168.2 kB / 483.1 MB, free: 3.836 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.775e-05/0.004361, allocations: 38.56 kB / 483.1 MB, free: 3.789 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.004375, allocations: 8.859 kB / 483.1 MB, free: 3.777 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.004388, allocations: 4 kB / 483.1 MB, free: 3.773 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.004446, allocations: 56.42 kB / 483.2 MB, free: 3.707 MB / 442.7 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.004448, allocations: 0 / 483.2 MB, free: 3.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001045/0.004552, allocations: 62.44 kB / 483.2 MB, free: 3.641 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.004585, allocations: 55.39 kB / 483.3 MB, free: 3.574 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.202e-05/0.004637, allocations: 107.8 kB / 483.4 MB, free: 3.457 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.004648, allocations: 33.64 kB / 483.4 MB, free: 3.418 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.69e-05/0.004675, allocations: 92.11 kB / 483.5 MB, free: 3.324 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.00469, allocations: 12.48 kB / 483.5 MB, free: 3.312 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.00472, allocations: 29.69 kB / 483.6 MB, free: 3.277 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.836e-05/0.004788, allocations: 319.5 kB / 483.9 MB, free: 2.957 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.0048, allocations: 4.25 kB / 483.9 MB, free: 2.953 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.954e-05/0.00483, allocations: 44.91 kB / 483.9 MB, free: 2.895 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.925e-05/0.004879, allocations: 54.03 kB / 484 MB, free: 2.828 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.004881, allocations: 0 / 484 MB, free: 2.828 MB / 442.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001796/0.00506, allocations: 79.88 kB / 484.1 MB, free: 2.746 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.005071, allocations: 5.594 kB / 484.1 MB, free: 2.742 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.005075, allocations: 0 / 484.1 MB, free: 2.742 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.005087, allocations: 7.938 kB / 484.1 MB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.17e-05/0.005149, allocations: 15.94 kB / 484.1 MB, free: 2.719 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.005153, allocations: 5.203 kB / 484.1 MB, free: 2.715 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.56e-05/0.005179, allocations: 4 kB / 484.1 MB, free: 2.711 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.005186, allocations: 4 kB / 484.1 MB, free: 2.707 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.802e-05/0.005244, allocations: 123 kB / 484.2 MB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.005253, allocations: 7.984 kB / 484.2 MB, free: 2.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.444e-05/0.005328, allocations: 60.23 kB / 484.3 MB, free: 2.508 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.005331, allocations: 3.938 kB / 484.3 MB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.005333, allocations: 4 kB / 484.3 MB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.005337, allocations: 5.141 kB / 484.3 MB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.005485, allocations: 202.8 kB / 484.5 MB, free: 2.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.005486, allocations: 3.938 kB / 484.5 MB, free: 2.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.779e-05/0.005514, allocations: 9.188 kB / 484.5 MB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.005516, allocations: 0 / 484.5 MB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.005523, allocations: 7.922 kB / 484.5 MB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.005524, allocations: 1.031 kB / 484.5 MB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.005525, allocations: 0 / 484.5 MB, free: 2.254 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.991e-05/0.005595, allocations: 143.5 kB / 484.7 MB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-06/0.005603, allocations: 9.625 kB / 484.7 MB, free: 2.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.005617, allocations: 7.938 kB / 484.7 MB, free: 2.082 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.884e-05/0.005656, allocations: 9.188 kB / 484.7 MB, free: 2.074 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.399e-05/0.00568, allocations: 7.984 kB / 484.7 MB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.005687, allocations: 0 / 484.7 MB, free: 2.066 MB / 442.7 MB Notification: Performance of sorting global known variables: time 1.328e-05/0.005701, allocations: 13.61 kB / 484.7 MB, free: 2.051 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005701, allocations: 3.938 kB / 484.7 MB, free: 2.047 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001366/0.005837, allocations: 20.77 kB / 484.7 MB, free: 2.027 MB / 442.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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 9.884e-05/0.005936, allocations: 85.22 kB / 484.8 MB, free: 1.938 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.573e-05/0.006012, allocations: 42.19 kB / 484.9 MB, free: 1.895 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.006014, allocations: 0 / 484.9 MB, free: 1.895 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 2.667e-05/0.006041, allocations: 20.84 kB / 484.9 MB, free: 1.871 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.006167, allocations: 7.859 kB / 484.9 MB, free: 1.867 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.006513, allocations: 155.1 kB / 485 MB, free: 1.691 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.238e-05/0.006545, allocations: 59.34 kB / 485.1 MB, free: 1.613 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 2.329e-05/0.006568, allocations: 4.938 kB / 485.1 MB, free: 1.609 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.006613, allocations: 59.36 kB / 485.2 MB, free: 1.551 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/0.006614, allocations: 0 / 485.2 MB, free: 1.551 MB / 442.7 MB Notification: Performance of Templates: time 0.002365/0.008979, allocations: 0.8947 MB / 486 MB, free: 0.7188 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5086306990124285]