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.001037/0.001037, allocations: 93.06 kB / 19.65 MB, free: 280 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.001602/0.001602, allocations: 169 kB / 23.02 MB, free: 1.551 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.9477/0.9477, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.7844/0.7844, allocations: 154.9 MB / 414.8 MB, free: 432 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 2.505e-06/2.505e-06, allocations: 0 / 0.5207 GB, free: 1.879 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.906e-05/3.157e-05, allocations: 5.25 kB / 0.5207 GB, free: 1.875 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001799/0.001831, allocations: 0.6698 MB / 0.5213 GB, free: 1.227 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.003177, allocations: 1.128 MB / 0.5224 GB, free: 88 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.346e-05/0.00322, allocations: 0.5938 kB / 0.5224 GB, free: 88 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.182e-05/0.003252, allocations: 3.938 kB / 0.5224 GB, free: 84 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 7.077e-05/0.003323, allocations: 16.8 kB / 0.5224 GB, free: 68 kB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.003652, allocations: 44.36 kB / 0.5225 GB, free: 24 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.003771, allocations: 51.8 kB / 0.5225 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 8.827e-05/0.003859, allocations: 16.53 kB / 0.5225 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 8.419e-05/0.003943, allocations: 28.7 kB / 0.5226 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 4.915e-05/0.003992, allocations: 15.97 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.004009, allocations: 7.125 kB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.04e-05/0.00408, allocations: 19.97 kB / 0.5226 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.004104, allocations: 15.94 kB / 0.5226 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.004135, allocations: 11.98 kB / 0.5226 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.004278, allocations: 51.81 kB / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.004281, allocations: 0 / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.21e-07/0.004282, allocations: 0 / 0.5227 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.004286, allocations: 4 kB / 0.5227 GB, free: 15.81 MB / 0.4948 GB 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.0005123/0.004799, allocations: 389.5 kB / 0.5231 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.004838, allocations: 8.562 kB / 0.5231 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.004958, allocations: 12.83 kB / 0.5231 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.392e-05/0.005052, allocations: 121.5 kB / 0.5232 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.005068, allocations: 4.375 kB / 0.5232 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.00508, allocations: 5.969 kB / 0.5232 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.00524, allocations: 66.94 kB / 0.5233 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.005248, allocations: 192 / 0.5233 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.005259, allocations: 384 / 0.5233 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.005267, allocations: 1.344 kB / 0.5233 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.77e-05/0.005315, allocations: 15.92 kB / 0.5233 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003926/0.005708, allocations: 273.8 kB / 0.5235 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.005809, allocations: 43.05 kB / 0.5236 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.331e-05/0.005842, allocations: 19.81 kB / 0.5236 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.005859, allocations: 0 / 0.5236 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.5e-05/0.005954, allocations: 72.97 kB / 0.5237 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.005956, allocations: 0.75 kB / 0.5237 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=7): time 0.0002153/0.006171, allocations: 81.67 kB / 0.5238 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.006215, allocations: 56.06 kB / 0.5238 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.01e-05/0.006305, allocations: 169.9 kB / 0.524 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.006321, allocations: 26.52 kB / 0.524 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.006376, allocations: 138.8 kB / 0.5241 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.006398, allocations: 13.34 kB / 0.5241 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.006442, allocations: 31.36 kB / 0.5242 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.006569, allocations: 0.4884 MB / 0.5247 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.808e-05/0.006597, allocations: 7.984 kB / 0.5247 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.392e-05/0.006651, allocations: 59.41 kB / 0.5247 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.874e-05/0.00674, allocations: 74.27 kB / 0.5248 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.006743, allocations: 4 kB / 0.5248 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001858/0.006929, allocations: 89.5 kB / 0.5249 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.006947, allocations: 7.938 kB / 0.5249 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.006953, allocations: 0 / 0.5249 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.006969, allocations: 8.031 kB / 0.5249 GB, free: 13.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.27e-05/0.007062, allocations: 17.45 kB / 0.5249 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.007067, allocations: 0 / 0.5249 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.029e-05/0.007108, allocations: 8 kB / 0.5249 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.007118, allocations: 4 kB / 0.5249 GB, free: 13.29 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 8.497e-05/0.007203, allocations: 171.2 kB / 0.5251 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.007222, allocations: 15.88 kB / 0.5251 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.007369, allocations: 70.11 kB / 0.5252 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.007372, allocations: 0 / 0.5252 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.007376, allocations: 3.984 kB / 0.5252 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.007381, allocations: 0 / 0.5252 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.00764, allocations: 323.5 kB / 0.5255 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.007642, allocations: 0 / 0.5255 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.324e-05/0.007686, allocations: 8 kB / 0.5255 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.007689, allocations: 3.984 kB / 0.5255 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.007698, allocations: 4 kB / 0.5255 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.007702, allocations: 4 kB / 0.5255 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.007703, allocations: 0.875 kB / 0.5255 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001518/0.007855, allocations: 223.8 kB / 0.5257 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.346e-06/0.007863, allocations: 8.719 kB / 0.5257 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.007883, allocations: 3.984 kB / 0.5257 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.753e-05/0.00795, allocations: 5.031 kB / 0.5257 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.007988, allocations: 11.98 kB / 0.5257 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.008, allocations: 0 / 0.5257 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 4.573e-05/0.008046, allocations: 124.4 kB / 0.5259 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.008046, allocations: 0 / 0.5259 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002607/0.008307, allocations: 19.98 kB / 0.5259 GB, free: 12.24 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.0001317/0.008438, allocations: 95.88 kB / 0.526 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001263/0.008565, allocations: 47.67 kB / 0.526 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.008566, allocations: 0 / 0.526 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 4.199e-05/0.008608, allocations: 27.61 kB / 0.526 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.008871, allocations: 20.05 kB / 0.5261 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.009386, allocations: 154.1 kB / 0.5262 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.973e-05/0.009426, allocations: 58.36 kB / 0.5263 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.818e-05/0.009454, allocations: 7.984 kB / 0.5263 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.869e-05/0.009483, allocations: 12.5 kB / 0.5263 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of SimCode: time 8.51e-07/0.009484, allocations: 0 / 0.5263 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.003385/0.01287, allocations: 0.9382 MB / 0.5272 GB, free: 10.89 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: 3.8716983469203115]