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.001334/0.001334, allocations: 78.56 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.001675/0.001675, allocations: 164.1 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.409/1.409, allocations: 177.2 MB / 202.8 MB, free: 9.16 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.198/1.198, allocations: 154.7 MB / 413.9 MB, free: 5.113 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.835e-06/2.835e-06, allocations: 0 / 0.6188 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.65e-05/3.933e-05, allocations: 6.047 kB / 0.6188 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001996/0.002036, allocations: 0.7949 MB / 0.6195 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001822/0.003858, allocations: 1.305 MB / 0.6208 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.677e-05/0.003925, allocations: 4 kB / 0.6208 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.003968, allocations: 11.86 kB / 0.6208 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.782e-05/0.004056, allocations: 24.36 kB / 0.6208 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008356/0.004891, allocations: 331.1 kB / 0.6212 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.005235, allocations: 291.5 kB / 0.6214 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.005361, allocations: 37.53 kB / 0.6215 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.005563, allocations: 163.8 kB / 0.6216 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.005739, allocations: 83.8 kB / 0.6217 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/0.005789, allocations: 32 kB / 0.6217 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.711e-05/0.005876, allocations: 39.97 kB / 0.6218 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.028e-05/0.005906, allocations: 19.92 kB / 0.6218 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.006027, allocations: 91.84 kB / 0.6219 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.006402, allocations: 315.1 kB / 0.6222 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.006405, allocations: 0 / 0.6222 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.102e-06/0.006406, allocations: 0 / 0.6222 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.006412, allocations: 3.938 kB / 0.6222 GB, free: 1.008 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.0006516/0.007063, allocations: 458.8 kB / 0.6226 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.007101, allocations: 8.031 kB / 0.6226 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.007173, allocations: 20.89 kB / 0.6227 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.007317, allocations: 132.6 kB / 0.6228 GB, free: 340 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/0.007348, allocations: 16.38 kB / 0.6228 GB, free: 324 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.007395, allocations: 20.38 kB / 0.6228 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.007584, allocations: 87.31 kB / 0.6229 GB, free: 212 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.007596, allocations: 3.938 kB / 0.6229 GB, free: 208 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.007612, allocations: 7.984 kB / 0.6229 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.007618, allocations: 4 kB / 0.6229 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.007721, allocations: 39.98 kB / 0.623 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006581/0.008379, allocations: 384.1 kB / 0.6233 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.008624, allocations: 66.56 kB / 0.6234 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.645e-05/0.00868, allocations: 24.97 kB / 0.6234 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.008693, allocations: 8 kB / 0.6234 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.008929, allocations: 113.7 kB / 0.6235 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.00893, allocations: 3.938 kB / 0.6235 GB, free: 15.51 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0003681/0.009298, allocations: 173.5 kB / 0.6237 GB, free: 15.34 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.009347, allocations: 55.41 kB / 0.6237 GB, free: 15.27 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.009485, allocations: 153.7 kB / 0.6239 GB, free: 15.11 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.009528, allocations: 33.7 kB / 0.6239 GB, free: 15.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.506e-05/0.009623, allocations: 112.5 kB / 0.624 GB, free: 14.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.009651, allocations: 35.73 kB / 0.6241 GB, free: 14.92 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.009784, allocations: 77.66 kB / 0.6241 GB, free: 14.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.009924, allocations: 322.8 kB / 0.6244 GB, free: 14.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.01021, allocations: 196.9 kB / 0.6246 GB, free: 14.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.01051, allocations: 231 kB / 0.6249 GB, free: 14.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.01083, allocations: 253.2 kB / 0.6251 GB, free: 13.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01083, allocations: 0 / 0.6251 GB, free: 13.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007199/0.01155, allocations: 495.5 kB / 0.6256 GB, free: 13.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.01166, allocations: 105 kB / 0.6257 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.01167, allocations: 4 kB / 0.6257 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.01168, allocations: 0 / 0.6257 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.108e-05/0.01175, allocations: 12 kB / 0.6257 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.01175, allocations: 0 / 0.6257 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/0.01224, allocations: 87.92 kB / 0.6258 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.01228, allocations: 23.98 kB / 0.6258 GB, free: 12.98 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.000169/0.01245, allocations: 135.7 kB / 0.6259 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/0.01248, allocations: 15.91 kB / 0.6259 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.01252, allocations: 20.72 kB / 0.626 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.01253, allocations: 4 kB / 0.626 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.01253, allocations: 4 kB / 0.626 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.01254, allocations: 0 / 0.626 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001935/0.01273, allocations: 153.2 kB / 0.6261 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01273, allocations: 0 / 0.6261 GB, free: 12.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.01278, allocations: 15.92 kB / 0.6261 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01279, allocations: 0 / 0.6261 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.0128, allocations: 0 / 0.6261 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.0128, allocations: 7.938 kB / 0.6261 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.0128, allocations: 0 / 0.6261 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.01305, allocations: 161 kB / 0.6263 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/0.01308, allocations: 15.95 kB / 0.6263 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.01311, allocations: 4 kB / 0.6263 GB, free: 12.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.13e-05/0.01314, allocations: 3.938 kB / 0.6263 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.01319, allocations: 15.97 kB / 0.6263 GB, free: 12.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.0132, allocations: 4 kB / 0.6263 GB, free: 12.38 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.729e-05/0.01328, allocations: 105 kB / 0.6264 GB, free: 12.27 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.01328, allocations: 0 / 0.6264 GB, free: 12.27 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002813/0.01357, allocations: 55.94 kB / 0.6265 GB, free: 12.22 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.000229/0.01379, allocations: 117.1 kB / 0.6266 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006539/0.01445, allocations: 435.1 kB / 0.627 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.01445, allocations: 3.938 kB / 0.627 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.119e-05/0.01454, allocations: 43.92 kB / 0.6271 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.0002996/0.01484, allocations: 27.92 kB / 0.6271 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004787/0.01532, allocations: 242.4 kB / 0.6273 GB, free: 11.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.833e-05/0.01541, allocations: 94.28 kB / 0.6274 GB, free: 11.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.043e-05/0.01545, allocations: 12.97 kB / 0.6274 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.01548, allocations: 16.5 kB / 0.6274 GB, free: 11.14 MB / 0.545 GB Notification: Performance of SimCode: time 3.41e-07/0.01548, allocations: 0 / 0.6274 GB, free: 11.14 MB / 0.545 GB Notification: Performance of Templates: time 0.006571/0.02205, allocations: 3.056 MB / 0.6304 GB, free: 8.176 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.630316615104675] Failed to read output from testmodel.py, exit status != 0: 0.03012753278017044 0.044954228000000006 0.035549999 Calling exit ...