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.001858/0.001858, allocations: 81.5 kB / 19.44 MB, free: 344 kB / 13.93 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.002059/0.002059, allocations: 169.2 kB / 22.76 MB, free: 1.66 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 1.604/1.604, allocations: 177.1 MB / 203.1 MB, free: 5.547 MB / 186.7 MB " [Timeout remaining time 178] 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 1.369/1.369, allocations: 154.8 MB / 414.3 MB, free: 472 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 178] 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 2.836e-06/2.836e-06, allocations: 0 / 0.5198 GB, free: 2.305 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.876e-05/3.16e-05, allocations: 2.812 kB / 0.5198 GB, free: 2.301 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002382/0.002414, allocations: 0.6608 MB / 0.5205 GB, free: 1.664 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.004315, allocations: 1.11 MB / 0.5216 GB, free: 0.543 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.906e-05/0.004375, allocations: 0 / 0.5216 GB, free: 0.543 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.004408, allocations: 3.938 kB / 0.5216 GB, free: 0.5391 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 9.335e-05/0.004502, allocations: 11.88 kB / 0.5216 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.004846, allocations: 53.48 kB / 0.5216 GB, free: 488 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.00497, allocations: 47.84 kB / 0.5217 GB, free: 440 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.005071, allocations: 8 kB / 0.5217 GB, free: 432 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.00519, allocations: 31.89 kB / 0.5217 GB, free: 400 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.558e-05/0.005246, allocations: 21.3 kB / 0.5217 GB, free: 380 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.005265, allocations: 4 kB / 0.5217 GB, free: 376 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.691e-05/0.005342, allocations: 19.98 kB / 0.5218 GB, free: 356 kB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.005372, allocations: 19.91 kB / 0.5218 GB, free: 336 kB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.409e-05/0.005406, allocations: 8.531 kB / 0.5218 GB, free: 328 kB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.005594, allocations: 72.52 kB / 0.5218 GB, free: 256 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.005597, allocations: 0 / 0.5218 GB, free: 256 kB / 490.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.005598, allocations: 1.469 kB / 0.5218 GB, free: 256 kB / 490.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005603, allocations: 0 / 0.5218 GB, free: 256 kB / 490.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.0006989/0.006301, allocations: 389.5 kB / 0.5222 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.006349, allocations: 12.03 kB / 0.5222 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.006477, allocations: 12.83 kB / 0.5222 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.006619, allocations: 116.5 kB / 0.5224 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.006638, allocations: 7.906 kB / 0.5224 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.006652, allocations: 4.375 kB / 0.5224 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.006846, allocations: 62.22 kB / 0.5224 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.006855, allocations: 192 / 0.5224 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.006867, allocations: 384 / 0.5224 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.006875, allocations: 4.375 kB / 0.5224 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.007017, allocations: 31.91 kB / 0.5225 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.007544, allocations: 279.7 kB / 0.5227 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.007718, allocations: 60.16 kB / 0.5228 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.007801, allocations: 32.7 kB / 0.5228 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.007829, allocations: 4 kB / 0.5228 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.008011, allocations: 78.45 kB / 0.5229 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.008012, allocations: 0 / 0.5229 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=7): time 0.0003887/0.008401, allocations: 113.7 kB / 0.523 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.008457, allocations: 56.25 kB / 0.5231 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.008602, allocations: 165.9 kB / 0.5232 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.008628, allocations: 29.7 kB / 0.5232 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.008718, allocations: 135.7 kB / 0.5234 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.008752, allocations: 23.83 kB / 0.5234 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.795e-05/0.00881, allocations: 29.03 kB / 0.5234 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000272/0.009082, allocations: 0.4923 MB / 0.5239 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.00916, allocations: 16 kB / 0.5239 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.009284, allocations: 78.28 kB / 0.524 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.009478, allocations: 97.52 kB / 0.5241 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.00948, allocations: 0 / 0.5241 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002559/0.009736, allocations: 112.3 kB / 0.5242 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.009756, allocations: 7.938 kB / 0.5242 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.009761, allocations: 3.938 kB / 0.5242 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.009779, allocations: 4 kB / 0.5242 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.0099, allocations: 15.98 kB / 0.5242 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.009906, allocations: 0 / 0.5242 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.085e-05/0.009967, allocations: 9.25 kB / 0.5242 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.009979, allocations: 4 kB / 0.5242 GB, free: 13.57 MB / 0.4948 GB 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 0.0001358/0.01012, allocations: 162.8 kB / 0.5244 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.01014, allocations: 20.75 kB / 0.5244 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002484/0.01039, allocations: 90.42 kB / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.0104, allocations: 4.938 kB / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.0104, allocations: 256 / 0.5245 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.01041, allocations: 3.984 kB / 0.5245 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.01089, allocations: 362 kB / 0.5249 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.01089, allocations: 1.094 kB / 0.5249 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.391e-05/0.01094, allocations: 8 kB / 0.5249 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.01095, allocations: 2.469 kB / 0.5249 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.01095, allocations: 0 / 0.5249 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.01096, allocations: 7.922 kB / 0.5249 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01096, allocations: 4 kB / 0.5249 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.01127, allocations: 243.8 kB / 0.5251 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.01128, allocations: 4 kB / 0.5251 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.0113, allocations: 3.125 kB / 0.5251 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.01138, allocations: 11.92 kB / 0.5251 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.01143, allocations: 7.984 kB / 0.5251 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.01144, allocations: 4 kB / 0.5251 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.854e-05/0.01152, allocations: 127.2 kB / 0.5253 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.01152, allocations: 0 / 0.5253 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002489/0.01177, allocations: 12 kB / 0.5253 GB, free: 12.45 MB / 0.4948 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 (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 0.0001711/0.01194, allocations: 108.8 kB / 0.5254 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.01217, allocations: 67.59 kB / 0.5254 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.01218, allocations: 3.594 kB / 0.5254 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.817e-05/0.01228, allocations: 35.67 kB / 0.5255 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.01253, allocations: 15.92 kB / 0.5255 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/0.01294, allocations: 146.1 kB / 0.5256 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.242e-05/0.01303, allocations: 75.19 kB / 0.5257 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.629e-05/0.01306, allocations: 7.281 kB / 0.5257 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.389e-05/0.0131, allocations: 12.5 kB / 0.5257 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of SimCode: time 5.91e-07/0.0131, allocations: 0 / 0.5257 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of Templates: time 0.004319/0.01741, allocations: 0.8766 MB / 0.5266 GB, free: 11.09 MB / 0.4948 GB " [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: 6.172484286013059]