Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.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.001429/0.001429, allocations: 93.06 kB / 19.65 MB, free: 276 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.001561/0.001561, allocations: 169 kB / 23.02 MB, free: 1.547 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.9348/0.9348, allocations: 177.1 MB / 203.4 MB, free: 5.645 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.7596/0.7596, allocations: 154.9 MB / 414.8 MB, free: 404 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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 0.5207 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.102e-05, allocations: 2.312 kB / 0.5207 GB, free: 0.7617 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001421/0.001442, allocations: 0.7015 MB / 0.5214 GB, free: 88 kB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.002875, allocations: 1.32 MB / 0.5227 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.967e-05/0.002915, allocations: 0.8125 kB / 0.5227 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 2.792e-05/0.002943, allocations: 3.938 kB / 0.5227 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 7.162e-05/0.003014, allocations: 16.88 kB / 0.5227 GB, free: 14.73 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006539/0.003668, allocations: 297.9 kB / 0.523 GB, free: 14.45 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005047/0.004173, allocations: 259.5 kB / 0.5232 GB, free: 14.19 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.938e-05/0.004252, allocations: 12.73 kB / 0.5232 GB, free: 14.18 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003164/0.007417, allocations: 139.8 kB / 0.5234 GB, free: 14.04 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.007554, allocations: 85.03 kB / 0.5234 GB, free: 13.96 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.007593, allocations: 20 kB / 0.5235 GB, free: 13.94 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.007666, allocations: 35.94 kB / 0.5235 GB, free: 13.9 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 2.328e-05/0.007689, allocations: 16.45 kB / 0.5235 GB, free: 13.89 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 8.201e-05/0.007771, allocations: 75.92 kB / 0.5236 GB, free: 13.81 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.007995, allocations: 196.4 kB / 0.5238 GB, free: 13.62 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.007998, allocations: 4 kB / 0.5238 GB, free: 13.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.007999, allocations: 0.6562 kB / 0.5238 GB, free: 13.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.008003, allocations: 0 / 0.5238 GB, free: 13.62 MB / 458.7 MB 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.0004649/0.008467, allocations: 0.5097 MB / 0.5243 GB, free: 13.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.0085, allocations: 8.656 kB / 0.5243 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.48e-05/0.008565, allocations: 16.89 kB / 0.5243 GB, free: 13.03 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.456e-05/0.008649, allocations: 125.3 kB / 0.5244 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.00867, allocations: 8.375 kB / 0.5244 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.008705, allocations: 21.3 kB / 0.5244 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.636e-05/0.008801, allocations: 58.94 kB / 0.5245 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.008807, allocations: 4.125 kB / 0.5245 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.008816, allocations: 6.125 kB / 0.5245 GB, free: 12.78 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.008825, allocations: 8.109 kB / 0.5245 GB, free: 12.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.92e-05/0.008854, allocations: 11.98 kB / 0.5245 GB, free: 12.76 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.009256, allocations: 375.5 kB / 0.5249 GB, free: 12.36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.533e-05/0.009311, allocations: 36.81 kB / 0.5249 GB, free: 12.31 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.82e-05/0.009339, allocations: 15.77 kB / 0.5249 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.009348, allocations: 4 kB / 0.5249 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/0.009465, allocations: 104.9 kB / 0.525 GB, free: 12.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.009466, allocations: 0.75 kB / 0.525 GB, free: 12.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=10): time 0.000243/0.009709, allocations: 125.5 kB / 0.5252 GB, free: 12.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.009741, allocations: 56.81 kB / 0.5252 GB, free: 11.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.009843, allocations: 192 kB / 0.5254 GB, free: 11.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.009871, allocations: 29.7 kB / 0.5254 GB, free: 11.74 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/0.009938, allocations: 146.9 kB / 0.5256 GB, free: 11.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.009958, allocations: 29.11 kB / 0.5256 GB, free: 11.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.01006, allocations: 75.33 kB / 0.5257 GB, free: 11.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.01018, allocations: 0.4923 MB / 0.5261 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003556/0.01373, allocations: 167.1 kB / 0.5263 GB, free: 10.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.01393, allocations: 230.8 kB / 0.5265 GB, free: 10.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.01414, allocations: 236.7 kB / 0.5268 GB, free: 10.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01415, allocations: 0 / 0.5268 GB, free: 10.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005197/0.01467, allocations: 469 kB / 0.5272 GB, free: 9.746 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.251e-05/0.01472, allocations: 93.09 kB / 0.5273 GB, free: 9.637 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.01472, allocations: 4 kB / 0.5273 GB, free: 9.633 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.01474, allocations: 4.875 kB / 0.5273 GB, free: 9.629 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-05/0.01476, allocations: 4 kB / 0.5273 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.01476, allocations: 8.984 kB / 0.5273 GB, free: 9.617 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.01502, allocations: 56.94 kB / 0.5274 GB, free: 9.562 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.01505, allocations: 23.05 kB / 0.5274 GB, free: 9.543 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.945e-05/0.01515, allocations: 179.1 kB / 0.5276 GB, free: 9.359 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.01517, allocations: 19.89 kB / 0.5276 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.0152, allocations: 12.44 kB / 0.5276 GB, free: 9.328 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.0152, allocations: 0 / 0.5276 GB, free: 9.328 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.0152, allocations: 0 / 0.5276 GB, free: 9.328 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01521, allocations: 3.984 kB / 0.5276 GB, free: 9.324 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.773e-05/0.01531, allocations: 143.6 kB / 0.5277 GB, free: 9.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.01531, allocations: 0 / 0.5277 GB, free: 9.152 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.054e-06/0.01531, allocations: 3.984 kB / 0.5277 GB, free: 9.148 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01532, allocations: 3.938 kB / 0.5277 GB, free: 9.145 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.01533, allocations: 4 kB / 0.5277 GB, free: 9.141 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01533, allocations: 0 / 0.5277 GB, free: 9.141 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01533, allocations: 0 / 0.5277 GB, free: 9.141 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/0.01548, allocations: 144.3 kB / 0.5279 GB, free: 8.977 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.989e-06/0.01549, allocations: 13.41 kB / 0.5279 GB, free: 8.965 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.01551, allocations: 7.938 kB / 0.5279 GB, free: 8.957 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.839e-05/0.01552, allocations: 4 kB / 0.5279 GB, free: 8.953 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.01556, allocations: 7.984 kB / 0.5279 GB, free: 8.945 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.01557, allocations: 8.484 kB / 0.5279 GB, free: 8.938 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.189e-05/0.01562, allocations: 144.4 kB / 0.5281 GB, free: 8.801 MB / 458.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01562, allocations: 0 / 0.5281 GB, free: 8.801 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002465/0.01587, allocations: 44 kB / 0.5281 GB, free: 8.758 MB / 458.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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001114/0.01598, allocations: 102.2 kB / 0.5282 GB, free: 8.652 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003807/0.01636, allocations: 409.3 kB / 0.5286 GB, free: 8.195 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01636, allocations: 4 kB / 0.5286 GB, free: 8.191 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 4.548e-05/0.01641, allocations: 31.61 kB / 0.5286 GB, free: 8.156 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.01662, allocations: 30.02 kB / 0.5286 GB, free: 8.129 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.01692, allocations: 194.8 kB / 0.5288 GB, free: 7.902 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.991e-05/0.01696, allocations: 67.2 kB / 0.5289 GB, free: 7.816 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.708e-05/0.01698, allocations: 9.484 kB / 0.5289 GB, free: 7.809 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.01701, allocations: 16.5 kB / 0.5289 GB, free: 7.793 MB / 458.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01701, allocations: 1.156 kB / 0.5289 GB, free: 7.793 MB / 458.7 MB Notification: Performance of Templates: time 0.01145/0.02846, allocations: 3.191 MB / 0.532 GB, free: 4.793 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.813681846950203]