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.001268/0.001268, allocations: 80.12 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.001355/0.001355, allocations: 167.8 kB / 22.46 MB, free: 5.367 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.438/1.438, allocations: 177.2 MB / 202.8 MB, free: 9.176 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.256/1.256, allocations: 154.7 MB / 413.9 MB, free: 5.156 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.394e-06/2.394e-06, allocations: 0 / 0.6187 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.139e-05/3.378e-05, allocations: 8.953 kB / 0.6187 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001913/0.001946, allocations: 0.6576 MB / 0.6194 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.003669, allocations: 1.081 MB / 0.6204 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.172e-05/0.003721, allocations: 0 / 0.6204 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.397e-05/0.003755, allocations: 3.938 kB / 0.6204 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.593e-05/0.00383, allocations: 7.922 kB / 0.6204 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.004151, allocations: 51.77 kB / 0.6205 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.00427, allocations: 51.8 kB / 0.6205 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.004387, allocations: 11.98 kB / 0.6205 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.625e-05/0.004474, allocations: 23.97 kB / 0.6206 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.233e-05/0.004536, allocations: 19.92 kB / 0.6206 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.004554, allocations: 4 kB / 0.6206 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.698e-05/0.004631, allocations: 23.92 kB / 0.6206 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.004655, allocations: 11.97 kB / 0.6206 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.98e-05/0.004695, allocations: 15.94 kB / 0.6206 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.004858, allocations: 63.83 kB / 0.6207 GB, free: 2.531 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.004863, allocations: 4 kB / 0.6207 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.072e-06/0.004865, allocations: 0 / 0.6207 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.004873, allocations: 0 / 0.6207 GB, free: 2.527 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.0006059/0.005478, allocations: 286.2 kB / 0.621 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.005518, allocations: 8.031 kB / 0.621 GB, free: 2.207 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.005639, allocations: 12.89 kB / 0.621 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.005756, allocations: 113.7 kB / 0.6211 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.005773, allocations: 4.359 kB / 0.6211 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.005786, allocations: 4.375 kB / 0.6211 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.005999, allocations: 66.22 kB / 0.6212 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.00601, allocations: 192 / 0.6212 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.006021, allocations: 384 / 0.6212 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.006026, allocations: 4.375 kB / 0.6212 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.006213, allocations: 43.89 kB / 0.6212 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004839/0.006697, allocations: 224.5 kB / 0.6214 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.006872, allocations: 50.55 kB / 0.6215 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.006973, allocations: 32.95 kB / 0.6215 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.006997, allocations: 0 / 0.6215 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.007238, allocations: 75.31 kB / 0.6216 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.007239, allocations: 0 / 0.6216 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.000438/0.007677, allocations: 117.6 kB / 0.6217 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.007733, allocations: 55.41 kB / 0.6218 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.007839, allocations: 113.8 kB / 0.6219 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.007861, allocations: 29.7 kB / 0.6219 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.017e-05/0.007922, allocations: 92.08 kB / 0.622 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.007946, allocations: 19.84 kB / 0.622 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.007991, allocations: 21.7 kB / 0.622 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.008173, allocations: 318.8 kB / 0.6223 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.008278, allocations: 23.97 kB / 0.6223 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.008402, allocations: 56.22 kB / 0.6224 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.008632, allocations: 92.19 kB / 0.6225 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.008636, allocations: 4 kB / 0.6225 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002787/0.008915, allocations: 105.7 kB / 0.6226 GB, free: 396 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.008933, allocations: 11.94 kB / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.008938, allocations: 0 / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.008953, allocations: 0 / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.009072, allocations: 23.92 kB / 0.6226 GB, free: 360 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.00908, allocations: 4 kB / 0.6226 GB, free: 356 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.009153, allocations: 12.19 kB / 0.6226 GB, free: 344 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.009165, allocations: 8 kB / 0.6226 GB, free: 336 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 0.0001116/0.009277, allocations: 119.6 kB / 0.6228 GB, free: 208 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.255e-05/0.00929, allocations: 3.969 kB / 0.6228 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.00957, allocations: 114 kB / 0.6229 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.009575, allocations: 3.984 kB / 0.6229 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.009579, allocations: 0 / 0.6229 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.009583, allocations: 0 / 0.6229 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.01005, allocations: 306.1 kB / 0.6232 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01005, allocations: 0 / 0.6232 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-05/0.01011, allocations: 8 kB / 0.6232 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.01011, allocations: 7.984 kB / 0.6232 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.01012, allocations: 4 kB / 0.6232 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.01012, allocations: 0 / 0.6232 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01012, allocations: 0 / 0.6232 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.01043, allocations: 183.5 kB / 0.6234 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.01044, allocations: 11.94 kB / 0.6234 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.01046, allocations: 4 kB / 0.6234 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.129e-05/0.01054, allocations: 4 kB / 0.6234 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.01059, allocations: 11.98 kB / 0.6234 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.01059, allocations: 0 / 0.6234 GB, free: 15.49 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.193e-05/0.01066, allocations: 95.2 kB / 0.6235 GB, free: 15.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.01066, allocations: 0 / 0.6235 GB, free: 15.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002586/0.01091, allocations: 8.188 kB / 0.6235 GB, free: 15.39 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.0001712/0.01109, allocations: 107.1 kB / 0.6236 GB, free: 15.28 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.01137, allocations: 68.12 kB / 0.6237 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01137, allocations: 4.062 kB / 0.6237 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.01149, allocations: 23.98 kB / 0.6237 GB, free: 15.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.01176, allocations: 20.78 kB / 0.6237 GB, free: 15.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.01214, allocations: 132.8 kB / 0.6238 GB, free: 15.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.656e-05/0.01222, allocations: 71.28 kB / 0.6239 GB, free: 14.92 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.738e-05/0.01225, allocations: 11.73 kB / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.01229, allocations: 12.5 kB / 0.6239 GB, free: 14.89 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.01229, allocations: 0 / 0.6239 GB, free: 14.89 MB / 0.545 GB Notification: Performance of Templates: time 0.004039/0.01633, allocations: 0.8365 MB / 0.6247 GB, free: 14.09 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.931513972580433] Failed to read output from testmodel.py, exit status != 0: 0.02593926712870598 0.041172434 0.033166949 Calling exit ...