Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0007216/0.0007216, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.000703/0.000703, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.8113/0.8113, allocations: 177.1 MB / 203.5 MB, free: 5.688 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-531:190: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-531:198: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.6662/0.6662, allocations: 154.5 MB / 414.5 MB, free: 0.832 MB / 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 0.6193 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.658e-05, allocations: 5.344 kB / 0.6193 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001114/0.00113, allocations: 0.7941 MB / 0.6201 GB, free: 12.39 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.002165, allocations: 1.314 MB / 0.6214 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.488e-05/0.00221, allocations: 4 kB / 0.6214 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/0.00224, allocations: 7.875 kB / 0.6214 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.704e-05/0.002307, allocations: 31.72 kB / 0.6214 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.00281, allocations: 319.7 kB / 0.6217 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002009/0.003011, allocations: 295.5 kB / 0.622 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/0.003109, allocations: 33.55 kB / 0.622 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.003232, allocations: 159.8 kB / 0.6222 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.003347, allocations: 87.8 kB / 0.6222 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.003377, allocations: 24 kB / 0.6223 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.778e-05/0.003434, allocations: 47.97 kB / 0.6223 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.243e-05/0.003457, allocations: 19.92 kB / 0.6223 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.003524, allocations: 87.84 kB / 0.6224 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.00375, allocations: 307.2 kB / 0.6227 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.003753, allocations: 4 kB / 0.6227 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003753, allocations: 3.938 kB / 0.6227 GB, free: 9.664 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.003757, allocations: 0 / 0.6227 GB, free: 9.664 MB / 0.5886 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.0004173/0.004174, allocations: 454.9 kB / 0.6232 GB, free: 9.172 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.004205, allocations: 17.47 kB / 0.6232 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.004254, allocations: 16.89 kB / 0.6232 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.607e-05/0.00433, allocations: 134.1 kB / 0.6233 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.004351, allocations: 8.375 kB / 0.6233 GB, free: 8.977 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.004378, allocations: 28.3 kB / 0.6233 GB, free: 8.949 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.004496, allocations: 96.11 kB / 0.6234 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.004503, allocations: 0 / 0.6234 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.004512, allocations: 4 kB / 0.6234 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.004516, allocations: 0 / 0.6234 GB, free: 8.848 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.143e-05/0.004587, allocations: 51.97 kB / 0.6235 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003974/0.004985, allocations: 380.1 kB / 0.6239 GB, free: 8.395 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.005138, allocations: 70.59 kB / 0.6239 GB, free: 8.316 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.445e-05/0.005173, allocations: 24.92 kB / 0.6239 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.005181, allocations: 0 / 0.6239 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.00531, allocations: 119.3 kB / 0.6241 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 9.21e-07/0.005311, allocations: 0 / 0.6241 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0002377/0.005549, allocations: 169.7 kB / 0.6242 GB, free: 7.988 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.005577, allocations: 55.41 kB / 0.6243 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.807e-05/0.005655, allocations: 152.8 kB / 0.6244 GB, free: 7.766 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.00568, allocations: 37.7 kB / 0.6245 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.00573, allocations: 112.5 kB / 0.6246 GB, free: 7.609 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.005748, allocations: 31.78 kB / 0.6246 GB, free: 7.578 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/0.005824, allocations: 81.61 kB / 0.6247 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.974e-05/0.005894, allocations: 322.8 kB / 0.625 GB, free: 7.168 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.006048, allocations: 181 kB / 0.6252 GB, free: 6.973 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.00622, allocations: 239 kB / 0.6254 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.006403, allocations: 249 kB / 0.6256 GB, free: 6.418 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.006405, allocations: 0 / 0.6256 GB, free: 6.418 MB / 0.5886 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006311/0.007036, allocations: 0.4916 MB / 0.6261 GB, free: 5.883 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.007079, allocations: 101 kB / 0.6262 GB, free: 5.766 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.007083, allocations: 0 / 0.6262 GB, free: 5.766 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.007095, allocations: 4 kB / 0.6262 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.244e-05/0.007127, allocations: 11.98 kB / 0.6262 GB, free: 5.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.007134, allocations: 8.125 kB / 0.6262 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.007356, allocations: 87.8 kB / 0.6263 GB, free: 5.656 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.00738, allocations: 19.98 kB / 0.6263 GB, free: 5.637 MB / 0.5886 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 7.271e-05/0.007453, allocations: 138.8 kB / 0.6265 GB, free: 5.492 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.007464, allocations: 11.95 kB / 0.6265 GB, free: 5.48 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.241e-05/0.007486, allocations: 24.7 kB / 0.6265 GB, free: 5.449 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.007487, allocations: 3.938 kB / 0.6265 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.00749, allocations: 0 / 0.6265 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.007493, allocations: 0 / 0.6265 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.323e-05/0.007576, allocations: 153.2 kB / 0.6266 GB, free: 5.266 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.007577, allocations: 0 / 0.6266 GB, free: 5.266 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.035e-05/0.007597, allocations: 15.94 kB / 0.6267 GB, free: 5.25 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.007599, allocations: 4 kB / 0.6267 GB, free: 5.246 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.007605, allocations: 0 / 0.6267 GB, free: 5.246 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.007606, allocations: 3.938 kB / 0.6267 GB, free: 5.242 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.007607, allocations: 0 / 0.6267 GB, free: 5.242 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.007743, allocations: 167.9 kB / 0.6268 GB, free: 5.062 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 9.427e-06/0.007753, allocations: 15.84 kB / 0.6268 GB, free: 5.047 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.246e-05/0.007765, allocations: 7.984 kB / 0.6268 GB, free: 5.039 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.512e-05/0.00778, allocations: 3.938 kB / 0.6268 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.65e-05/0.007807, allocations: 11.98 kB / 0.6269 GB, free: 5.023 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.007812, allocations: 4 kB / 0.6269 GB, free: 5.02 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.007e-05/0.007852, allocations: 115.2 kB / 0.627 GB, free: 4.906 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007852, allocations: 0 / 0.627 GB, free: 4.906 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001604/0.008013, allocations: 51.94 kB / 0.627 GB, free: 4.855 MB / 0.5886 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 8.898e-05/0.008102, allocations: 110.1 kB / 0.6271 GB, free: 4.742 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003286/0.00843, allocations: 435.2 kB / 0.6275 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.008431, allocations: 0 / 0.6275 GB, free: 4.262 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.086e-05/0.008482, allocations: 43.92 kB / 0.6276 GB, free: 4.219 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.008642, allocations: 29.69 kB / 0.6276 GB, free: 4.191 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.008924, allocations: 268.2 kB / 0.6279 GB, free: 3.898 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.609e-05/0.00897, allocations: 94.28 kB / 0.628 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.008993, allocations: 16.5 kB / 0.628 GB, free: 3.773 MB / 0.5886 GB Notification: Performance of SimCode: time 2.4e-07/0.008993, allocations: 0 / 0.628 GB, free: 3.773 MB / 0.5886 GB Notification: Performance of Templates: time 0.002366/0.01136, allocations: 2.277 MB / 0.6302 GB, free: 1.523 MB / 0.5886 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.964614816941321] Failed to read output from testmodel.py, exit status != 0: 0.01561739668250084 0.022904089000000002 0.01764935 Calling exit ...