Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.001634/0.001634, allocations: 79.36 kB / 19.18 MB, free: 2.52 MB / 14.72 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.002133/0.002133, allocations: 167.2 kB / 22.46 MB, free: 5.375 MB / 14.72 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.513/1.513, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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-531:686: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-531:694: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 1.189/1.189, allocations: 154.6 MB / 413.8 MB, free: 5.219 MB / 382.1 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. " [Timeout remaining time 178] 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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 0.6186 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.579e-05/3.848e-05, allocations: 8.812 kB / 0.6186 GB, free: 4.574 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001893/0.001931, allocations: 0.6484 MB / 0.6192 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001673/0.003604, allocations: 1.089 MB / 0.6203 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.941e-05/0.003653, allocations: 0 / 0.6203 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.675e-05/0.00369, allocations: 3.938 kB / 0.6203 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.238e-05/0.003762, allocations: 7.938 kB / 0.6203 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.004088, allocations: 47.77 kB / 0.6203 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.004199, allocations: 51.83 kB / 0.6204 GB, free: 2.73 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.409e-05/0.004293, allocations: 4 kB / 0.6204 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.004395, allocations: 31.91 kB / 0.6204 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.638e-05/0.004441, allocations: 11.98 kB / 0.6204 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.004463, allocations: 11.98 kB / 0.6204 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.372e-05/0.004537, allocations: 23.92 kB / 0.6204 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.412e-05/0.004561, allocations: 15.88 kB / 0.6205 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.841e-05/0.004599, allocations: 15.98 kB / 0.6205 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.004766, allocations: 67.77 kB / 0.6205 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004768, allocations: 0 / 0.6205 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.21e-07/0.004769, allocations: 0 / 0.6205 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.004774, allocations: 4 kB / 0.6205 GB, free: 2.547 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005806/0.005354, allocations: 290.1 kB / 0.6208 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.005393, allocations: 12.03 kB / 0.6208 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.382e-05/0.005487, allocations: 12.89 kB / 0.6208 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.005624, allocations: 113.8 kB / 0.6209 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.005639, allocations: 384 / 0.6209 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.005653, allocations: 8.375 kB / 0.621 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.005856, allocations: 58.23 kB / 0.621 GB, free: 2 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.005866, allocations: 192 / 0.621 GB, free: 2 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.005879, allocations: 4.359 kB / 0.621 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.005883, allocations: 384 / 0.621 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.006079, allocations: 47.91 kB / 0.6211 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004937/0.006573, allocations: 228.4 kB / 0.6213 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.006746, allocations: 50.55 kB / 0.6213 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.006857, allocations: 28.97 kB / 0.6214 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.006884, allocations: 0 / 0.6214 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.007109, allocations: 79.25 kB / 0.6214 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.007111, allocations: 4 kB / 0.6214 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0004219/0.007533, allocations: 117.6 kB / 0.6215 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.007596, allocations: 51.41 kB / 0.6216 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.619e-05/0.007692, allocations: 113.8 kB / 0.6217 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.007713, allocations: 29.7 kB / 0.6217 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.007779, allocations: 84.09 kB / 0.6218 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.007805, allocations: 15.91 kB / 0.6218 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.007852, allocations: 29.64 kB / 0.6219 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.007996, allocations: 318.8 kB / 0.6222 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.008098, allocations: 27.97 kB / 0.6222 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.008233, allocations: 60.2 kB / 0.6222 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.008455, allocations: 88.2 kB / 0.6223 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.008456, allocations: 0 / 0.6223 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002973/0.008754, allocations: 113.5 kB / 0.6224 GB, free: 404 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.008769, allocations: 8.125 kB / 0.6224 GB, free: 396 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.008773, allocations: 0 / 0.6224 GB, free: 396 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.008789, allocations: 7.938 kB / 0.6225 GB, free: 388 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.008898, allocations: 16.14 kB / 0.6225 GB, free: 372 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.008903, allocations: 4 kB / 0.6225 GB, free: 368 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.426e-05/0.008977, allocations: 11.94 kB / 0.6225 GB, free: 356 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.008988, allocations: 4 kB / 0.6225 GB, free: 352 kB / 0.5294 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.592e-05/0.009084, allocations: 123.6 kB / 0.6226 GB, free: 220 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/0.009099, allocations: 7.938 kB / 0.6226 GB, free: 212 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.009394, allocations: 102.4 kB / 0.6227 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.009399, allocations: 4 kB / 0.6227 GB, free: 96 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.009402, allocations: 0 / 0.6227 GB, free: 96 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.00941, allocations: 11.98 kB / 0.6227 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.009855, allocations: 298.1 kB / 0.623 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.009856, allocations: 0 / 0.623 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/0.00992, allocations: 11.98 kB / 0.623 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.009922, allocations: 0 / 0.623 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.00993, allocations: 0 / 0.623 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.009931, allocations: 0 / 0.623 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.009932, allocations: 0 / 0.623 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003052/0.01024, allocations: 199.4 kB / 0.6232 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.046e-05/0.01025, allocations: 3.953 kB / 0.6232 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.01027, allocations: 7.938 kB / 0.6232 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.01035, allocations: 7.984 kB / 0.6232 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.638e-05/0.01039, allocations: 0 / 0.6232 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.01039, allocations: 0 / 0.6232 GB, free: 15.51 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.779e-05/0.01045, allocations: 91.27 kB / 0.6233 GB, free: 15.42 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.01045, allocations: 0 / 0.6233 GB, free: 15.42 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000243/0.01069, allocations: 16 kB / 0.6233 GB, free: 15.41 MB / 0.545 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001501/0.01084, allocations: 111.1 kB / 0.6234 GB, free: 15.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002625/0.01111, allocations: 63.89 kB / 0.6235 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01111, allocations: 0 / 0.6235 GB, free: 15.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.01122, allocations: 28.05 kB / 0.6235 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.01146, allocations: 11.92 kB / 0.6235 GB, free: 15.19 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003249/0.01179, allocations: 141.1 kB / 0.6237 GB, free: 15.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.522e-05/0.01185, allocations: 67.33 kB / 0.6237 GB, free: 14.94 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.83e-05/0.01188, allocations: 7.75 kB / 0.6237 GB, free: 14.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/0.01192, allocations: 20.44 kB / 0.6238 GB, free: 14.91 MB / 0.545 GB Notification: Performance of SimCode: time 4e-07/0.01192, allocations: 0 / 0.6238 GB, free: 14.91 MB / 0.545 GB Notification: Performance of Templates: time 0.003516/0.01543, allocations: 0.8259 MB / 0.6246 GB, free: 14.11 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.754980735480785] Failed to read output from testmodel.py, exit status != 0: 0.0240180641412735 0.037965660000000005 0.030208691000000003 Calling exit ...