Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0006987/0.0006987, 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.0007025/0.0007025, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8016/0.8016, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.661/0.661, allocations: 154.6 MB / 414.5 MB, free: 0.8281 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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 0.6193 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.99e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.28 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00113/0.00115, allocations: 0.6591 MB / 0.6199 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009797/0.00213, allocations: 1.104 MB / 0.621 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.206e-05/0.002172, allocations: 4 kB / 0.621 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.002199, allocations: 3.938 kB / 0.621 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.002258, allocations: 15.91 kB / 0.621 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.002519, allocations: 51.77 kB / 0.621 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.955e-05/0.002608, allocations: 67.83 kB / 0.6211 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 8.604e-05/0.002694, allocations: 8 kB / 0.6211 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 7.151e-05/0.002766, allocations: 39.89 kB / 0.6212 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.51e-05/0.002811, allocations: 23.95 kB / 0.6212 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.002827, allocations: 8 kB / 0.6212 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.709e-05/0.002884, allocations: 27.92 kB / 0.6212 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.002906, allocations: 23.91 kB / 0.6212 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.662e-05/0.002933, allocations: 12 kB / 0.6213 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.003069, allocations: 91.66 kB / 0.6213 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.003072, allocations: 3.984 kB / 0.6213 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.783e-06/0.003074, allocations: 0 / 0.6213 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.285e-06/0.003082, allocations: 0 / 0.6213 GB, free: 11.13 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000482/0.003564, allocations: 302.2 kB / 0.6216 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.003597, allocations: 13.47 kB / 0.6216 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.744e-05/0.003664, allocations: 12.89 kB / 0.6217 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.783e-05/0.003732, allocations: 109.7 kB / 0.6218 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.003753, allocations: 4.375 kB / 0.6218 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.003767, allocations: 12.36 kB / 0.6218 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.003903, allocations: 82.09 kB / 0.6219 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.003911, allocations: 4.125 kB / 0.6219 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.003921, allocations: 4.375 kB / 0.6219 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.003925, allocations: 4.375 kB / 0.6219 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.004035, allocations: 63.86 kB / 0.6219 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003438/0.004378, allocations: 236.5 kB / 0.6222 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.004499, allocations: 78.47 kB / 0.6222 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.929e-05/0.004558, allocations: 36.83 kB / 0.6223 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.004577, allocations: 4 kB / 0.6223 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001246/0.004701, allocations: 87.31 kB / 0.6223 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.004703, allocations: 4 kB / 0.6224 GB, free: 9.977 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0003086/0.005011, allocations: 173.7 kB / 0.6225 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.00505, allocations: 51.41 kB / 0.6226 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.921e-05/0.005109, allocations: 109.8 kB / 0.6227 GB, free: 9.621 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.005125, allocations: 33.7 kB / 0.6227 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.005161, allocations: 88.36 kB / 0.6228 GB, free: 9.488 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.005185, allocations: 35.73 kB / 0.6228 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.839e-05/0.005224, allocations: 37.64 kB / 0.6229 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.183e-05/0.005295, allocations: 326.8 kB / 0.6232 GB, free: 9.082 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.146e-05/0.005357, allocations: 35.97 kB / 0.6232 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.865e-05/0.005425, allocations: 54.55 kB / 0.6233 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.00555, allocations: 102.6 kB / 0.6234 GB, free: 8.875 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.005552, allocations: 0 / 0.6234 GB, free: 8.875 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001682/0.00572, allocations: 146.8 kB / 0.6235 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.005731, allocations: 11.88 kB / 0.6235 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.005736, allocations: 0 / 0.6235 GB, free: 8.715 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.005751, allocations: 4 kB / 0.6235 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.607e-05/0.005827, allocations: 16.36 kB / 0.6235 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.005832, allocations: 4 kB / 0.6235 GB, free: 8.691 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.349e-05/0.005865, allocations: 16.17 kB / 0.6235 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.005874, allocations: 8 kB / 0.6236 GB, free: 8.668 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.891e-05/0.005943, allocations: 130.8 kB / 0.6237 GB, free: 8.531 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-06/0.005951, allocations: 7.891 kB / 0.6237 GB, free: 8.523 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.006159, allocations: 153.9 kB / 0.6238 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.006161, allocations: 0 / 0.6238 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.006165, allocations: 0 / 0.6238 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.00617, allocations: 3.984 kB / 0.6238 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.006456, allocations: 346.1 kB / 0.6242 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.006458, allocations: 4 kB / 0.6242 GB, free: 7.98 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.869e-05/0.006486, allocations: 8 kB / 0.6242 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.006488, allocations: 0 / 0.6242 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.006497, allocations: 7.984 kB / 0.6242 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.006498, allocations: 0 / 0.6242 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.006498, allocations: 0 / 0.6242 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.006673, allocations: 239.3 kB / 0.6244 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.424e-06/0.006681, allocations: 11.89 kB / 0.6244 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.006694, allocations: 3.984 kB / 0.6244 GB, free: 7.699 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.894e-05/0.006742, allocations: 15.98 kB / 0.6244 GB, free: 7.684 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.875e-05/0.006791, allocations: 4 kB / 0.6244 GB, free: 7.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.0068, allocations: 7.984 kB / 0.6245 GB, free: 7.672 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.722e-05/0.006827, allocations: 83.28 kB / 0.6245 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006827, allocations: 0 / 0.6245 GB, free: 7.59 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001672/0.006994, allocations: 16 kB / 0.6245 GB, free: 7.574 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001059/0.0071, allocations: 117.6 kB / 0.6247 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001848/0.007285, allocations: 99.81 kB / 0.6248 GB, free: 7.355 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.007286, allocations: 0 / 0.6248 GB, free: 7.355 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.538e-05/0.007352, allocations: 43.97 kB / 0.6248 GB, free: 7.312 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.007532, allocations: 11.92 kB / 0.6248 GB, free: 7.301 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002699/0.007802, allocations: 187.2 kB / 0.625 GB, free: 7.086 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.157e-05/0.007844, allocations: 71.47 kB / 0.6251 GB, free: 6.996 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.007867, allocations: 12.5 kB / 0.6251 GB, free: 6.984 MB / 0.5886 GB Notification: Performance of SimCode: time 3.91e-07/0.007867, allocations: 0 / 0.6251 GB, free: 6.984 MB / 0.5886 GB Notification: Performance of Templates: time 0.001761/0.009628, allocations: 1.129 MB / 0.6262 GB, free: 5.867 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.719452083110809] Failed to read output from testmodel.py, exit status != 0: 0.013510867953300476 0.020761842000000003 0.016221025 Calling exit ...