Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008407/0.0008407, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001241/0.002082, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.000871/0.000871, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001881/0.002752, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.057/1.057, allocations: 177.2 MB / 189.7 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09376/1.151, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7946/0.7946, allocations: 154.6 MB / 398.8 MB, free: 404 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.2758/1.07, allocations: 49.05 MB / 447.8 MB, free: 6.574 MB / 426.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_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_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0.9844 kB / 449.1 MB, free: 5.293 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.468e-05, allocations: 3.188 kB / 449.1 MB, free: 5.289 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002029/0.002053, allocations: 0.7192 MB / 449.8 MB, free: 4.609 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001402/0.003456, allocations: 1.14 MB / 451 MB, free: 3.461 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.003503, allocations: 0 / 451 MB, free: 3.461 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 3.201e-05/0.003535, allocations: 3.938 kB / 451 MB, free: 3.457 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 4.831e-05/0.003583, allocations: 3.062 kB / 451 MB, free: 3.457 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.003849, allocations: 50.5 kB / 451 MB, free: 3.41 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.003961, allocations: 48.72 kB / 451.1 MB, free: 3.371 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.299e-05/0.004044, allocations: 12.64 kB / 451.1 MB, free: 3.359 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.004159, allocations: 30.05 kB / 451.1 MB, free: 3.332 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.956e-05/0.004229, allocations: 22.27 kB / 451.1 MB, free: 3.312 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.004247, allocations: 4 kB / 451.2 MB, free: 3.309 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.425e-05/0.004341, allocations: 24.64 kB / 451.2 MB, free: 3.285 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 2.387e-05/0.004365, allocations: 7.375 kB / 451.2 MB, free: 3.281 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.673e-05/0.004392, allocations: 10.41 kB / 451.2 MB, free: 3.273 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.004532, allocations: 50.45 kB / 451.2 MB, free: 3.227 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.381e-05/0.004546, allocations: 1.312 kB / 451.2 MB, free: 3.227 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004547, allocations: 0.75 kB / 451.2 MB, free: 3.227 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.004562, allocations: 0 / 451.2 MB, free: 3.227 MB / 426.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.0005439/0.005106, allocations: 275.4 kB / 451.5 MB, free: 2.934 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.00514, allocations: 9.906 kB / 451.5 MB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.005269, allocations: 94.03 kB / 451.6 MB, free: 2.816 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.623e-05/0.005356, allocations: 109.8 kB / 451.7 MB, free: 2.684 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.005366, allocations: 384 / 451.7 MB, free: 2.684 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.005379, allocations: 4.375 kB / 451.7 MB, free: 2.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.005481, allocations: 68.78 kB / 451.8 MB, free: 2.605 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.005488, allocations: 4.125 kB / 451.8 MB, free: 2.602 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-06/0.005496, allocations: 3.016 kB / 451.8 MB, free: 2.602 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.005501, allocations: 384 / 451.8 MB, free: 2.602 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.61e-05/0.005527, allocations: 15.94 kB / 451.8 MB, free: 2.586 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/0.005766, allocations: 168.9 kB / 452 MB, free: 2.406 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.223e-05/0.005829, allocations: 31.62 kB / 452 MB, free: 2.367 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.75e-05/0.005846, allocations: 16.92 kB / 452 MB, free: 2.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.005862, allocations: 4.906 kB / 452 MB, free: 2.344 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.486e-05/0.005937, allocations: 60.09 kB / 452.1 MB, free: 2.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.005939, allocations: 0.625 kB / 452.1 MB, free: 2.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001181/0.006057, allocations: 61.61 kB / 452.2 MB, free: 2.207 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.006093, allocations: 56.62 kB / 452.2 MB, free: 2.141 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.694e-05/0.00615, allocations: 114.6 kB / 452.3 MB, free: 2.016 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.006161, allocations: 25.7 kB / 452.3 MB, free: 1.984 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.891e-05/0.006189, allocations: 85.97 kB / 452.4 MB, free: 1.898 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.006208, allocations: 19.84 kB / 452.4 MB, free: 1.879 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.00624, allocations: 29.69 kB / 452.5 MB, free: 1.844 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.231e-05/0.006312, allocations: 316 kB / 452.8 MB, free: 1.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.006325, allocations: 7.984 kB / 452.8 MB, free: 1.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.923e-05/0.006354, allocations: 36.28 kB / 452.8 MB, free: 1.469 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.462e-05/0.006409, allocations: 59.5 kB / 452.9 MB, free: 1.398 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.00641, allocations: 0.7656 kB / 452.9 MB, free: 1.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.42e-05/0.006485, allocations: 71.05 kB / 453 MB, free: 1.324 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.006496, allocations: 8 kB / 453 MB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.006501, allocations: 0 / 453 MB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.006515, allocations: 8.625 kB / 453 MB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.204e-05/0.006587, allocations: 17.08 kB / 453 MB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-06/0.00659, allocations: 3.938 kB / 453 MB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.576e-05/0.006616, allocations: 11.88 kB / 453 MB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.006624, allocations: 8.875 kB / 453 MB, free: 1.27 MB / 426.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.739e-05/0.006682, allocations: 114.1 kB / 453.1 MB, free: 1.152 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.006693, allocations: 11.98 kB / 453.1 MB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.002e-05/0.006773, allocations: 66.03 kB / 453.2 MB, free: 1.066 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.006777, allocations: 3.938 kB / 453.2 MB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.006779, allocations: 4 kB / 453.2 MB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.006782, allocations: 0 / 453.2 MB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.006939, allocations: 203.7 kB / 453.4 MB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.00694, allocations: 0 / 453.4 MB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.1e-05/0.006971, allocations: 7.984 kB / 453.4 MB, free: 0.8281 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-06/0.006978, allocations: 8.5 kB / 453.4 MB, free: 0.8203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.00698, allocations: 1.219 kB / 453.4 MB, free: 0.8203 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-06/0.006984, allocations: 0 / 453.4 MB, free: 0.8203 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.006985, allocations: 3.938 kB / 453.4 MB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.006986, allocations: 4 kB / 453.4 MB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.667e-05/0.007063, allocations: 152.3 kB / 453.6 MB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.007076, allocations: 3.938 kB / 453.6 MB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.88e-05/0.007115, allocations: 8.484 kB / 453.6 MB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.423e-05/0.007139, allocations: 4.688 kB / 453.6 MB, free: 0.6328 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.007148, allocations: 4.625 kB / 453.6 MB, free: 0.6289 MB / 426.7 MB Notification: Performance of sorting global known variables: time 1.271e-05/0.007161, allocations: 12.84 kB / 453.6 MB, free: 0.6133 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007161, allocations: 0.5625 kB / 453.6 MB, free: 0.6133 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001323/0.007293, allocations: 12 kB / 453.6 MB, free: 0.6016 MB / 426.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 0.0001218/0.007415, allocations: 90.34 kB / 453.7 MB, free: 0.5078 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.135e-05/0.007506, allocations: 45.64 kB / 453.8 MB, free: 472 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.007511, allocations: 1.719 kB / 453.8 MB, free: 472 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.289e-05/0.007544, allocations: 16.86 kB / 453.8 MB, free: 452 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.007715, allocations: 70 kB / 453.8 MB, free: 372 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005864/0.008302, allocations: 151.5 kB / 454 MB, free: 200 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.677e-05/0.008338, allocations: 64.28 kB / 454.1 MB, free: 116 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.721e-05/0.008366, allocations: 5.312 kB / 454.1 MB, free: 112 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.604e-05/0.008412, allocations: 59.38 kB / 454.1 MB, free: 52 kB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/0.008412, allocations: 3.938 kB / 454.1 MB, free: 48 kB / 426.7 MB Notification: Performance of Templates: time 0.002564/0.01098, allocations: 0.8946 MB / 455 MB, free: 15.22 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5441516479477286]