Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Integers.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.001625/0.001625, allocations: 79.28 kB / 19.18 MB, free: 2.516 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.00196/0.00196, allocations: 163.3 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.521/1.521, allocations: 177.2 MB / 202.8 MB, free: 9.137 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.229/1.229, allocations: 154.6 MB / 413.8 MB, free: 5.211 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 0.6186 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.245e-05/3.455e-05, allocations: 4.672 kB / 0.6186 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002162/0.002197, allocations: 0.7993 MB / 0.6194 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002173/0.00437, allocations: 1.313 MB / 0.6207 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.896e-05/0.004459, allocations: 0 / 0.6207 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.568e-05/0.004505, allocations: 15.75 kB / 0.6207 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.004615, allocations: 23.8 kB / 0.6207 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.005619, allocations: 316.2 kB / 0.621 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.006096, allocations: 303.4 kB / 0.6213 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.00625, allocations: 29.55 kB / 0.6213 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.006562, allocations: 155.8 kB / 0.6215 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.006776, allocations: 99.7 kB / 0.6216 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.006859, allocations: 28 kB / 0.6216 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.006975, allocations: 35.94 kB / 0.6216 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.00701, allocations: 19.92 kB / 0.6216 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.007145, allocations: 91.84 kB / 0.6217 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.007639, allocations: 315.1 kB / 0.622 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.007642, allocations: 0 / 0.622 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.32e-07/0.007643, allocations: 4 kB / 0.622 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.007651, allocations: 0 / 0.622 GB, free: 1.004 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008119/0.008463, allocations: 458.8 kB / 0.6225 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.008504, allocations: 8.031 kB / 0.6225 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.387e-05/0.008598, allocations: 20.89 kB / 0.6225 GB, free: 492 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.008754, allocations: 136.4 kB / 0.6226 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.008789, allocations: 12.38 kB / 0.6226 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.008842, allocations: 20.38 kB / 0.6227 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.009046, allocations: 89.58 kB / 0.6227 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.009057, allocations: 4 kB / 0.6227 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.009073, allocations: 8 kB / 0.6228 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.009077, allocations: 0 / 0.6228 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.009193, allocations: 45.7 kB / 0.6228 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007456/0.009939, allocations: 388.1 kB / 0.6232 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.01018, allocations: 66.56 kB / 0.6232 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.715e-05/0.01025, allocations: 28.91 kB / 0.6233 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.01026, allocations: 0 / 0.6233 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.0105, allocations: 113.6 kB / 0.6234 GB, free: 15.51 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.0105, allocations: 0 / 0.6234 GB, free: 15.51 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003866/0.01089, allocations: 181.5 kB / 0.6235 GB, free: 15.32 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.01094, allocations: 55.41 kB / 0.6236 GB, free: 15.26 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.01109, allocations: 155.4 kB / 0.6237 GB, free: 15.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.01113, allocations: 37.64 kB / 0.6238 GB, free: 15.05 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.411e-05/0.01123, allocations: 112.5 kB / 0.6239 GB, free: 14.94 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.01127, allocations: 31.8 kB / 0.6239 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.01142, allocations: 77.66 kB / 0.624 GB, free: 14.83 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.01158, allocations: 322.8 kB / 0.6243 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.01188, allocations: 189 kB / 0.6245 GB, free: 14.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.01221, allocations: 235 kB / 0.6247 GB, free: 14.03 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.01258, allocations: 257.1 kB / 0.6249 GB, free: 13.74 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.01258, allocations: 4 kB / 0.625 GB, free: 13.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008043/0.01339, allocations: 483.2 kB / 0.6254 GB, free: 13.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.01349, allocations: 109.2 kB / 0.6255 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.0135, allocations: 4 kB / 0.6255 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.01351, allocations: 4 kB / 0.6255 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.595e-05/0.01358, allocations: 11.94 kB / 0.6255 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.01359, allocations: 4 kB / 0.6255 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.0141, allocations: 83.78 kB / 0.6256 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/0.01415, allocations: 23.92 kB / 0.6256 GB, free: 12.97 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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 0.0001684/0.01432, allocations: 139.6 kB / 0.6258 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.01435, allocations: 11.91 kB / 0.6258 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.322e-05/0.01439, allocations: 20.72 kB / 0.6258 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.01439, allocations: 0 / 0.6258 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.0144, allocations: 4 kB / 0.6258 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.01441, allocations: 3.984 kB / 0.6258 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.01457, allocations: 145.2 kB / 0.626 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.01457, allocations: 4 kB / 0.626 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.056e-05/0.01463, allocations: 11.98 kB / 0.626 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.01464, allocations: 8 kB / 0.626 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.01465, allocations: 0 / 0.626 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.01465, allocations: 3.938 kB / 0.626 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01465, allocations: 0 / 0.626 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.01491, allocations: 166.8 kB / 0.6261 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.788e-05/0.01493, allocations: 11.95 kB / 0.6261 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.01495, allocations: 0 / 0.6261 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-05/0.01499, allocations: 11.92 kB / 0.6262 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.01504, allocations: 11.98 kB / 0.6262 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.01506, allocations: 4 kB / 0.6262 GB, free: 12.37 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.495e-05/0.01514, allocations: 112 kB / 0.6263 GB, free: 12.26 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.01514, allocations: 0 / 0.6263 GB, free: 12.26 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003117/0.01546, allocations: 51.95 kB / 0.6263 GB, free: 12.21 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001906/0.01565, allocations: 110.7 kB / 0.6264 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006092/0.01626, allocations: 439.1 kB / 0.6269 GB, free: 11.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.01626, allocations: 0 / 0.6269 GB, free: 11.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.491e-05/0.01634, allocations: 47.86 kB / 0.6269 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.01663, allocations: 24.36 kB / 0.6269 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.01714, allocations: 246 kB / 0.6272 GB, free: 11.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.929e-05/0.01724, allocations: 94.27 kB / 0.6272 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.186e-05/0.01728, allocations: 12.98 kB / 0.6273 GB, free: 11.15 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.01732, allocations: 20.48 kB / 0.6273 GB, free: 11.13 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.01732, allocations: 3.938 kB / 0.6273 GB, free: 11.13 MB / 0.545 GB Notification: Performance of Templates: time 0.007311/0.02463, allocations: 3.016 MB / 0.6302 GB, free: 8.195 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.965816155076027] Failed to read output from testmodel.py, exit status != 0: 0.034135229885578156 0.049535681000000005 0.038693335 Calling exit ...