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.0007838/0.0007838, allocations: 76.45 kB / 19.91 MB, free: 16 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.0007548/0.0007548, allocations: 165.9 kB / 23.18 MB, free: 1.387 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.8623/0.8623, allocations: 177.2 MB / 203.6 MB, free: 5.758 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.7248/0.7248, allocations: 155 MB / 415 MB, free: 488 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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008891/0.0008891, allocations: 79.86 kB / 0.6199 GB, free: 12.72 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4141, allocations: 102 MB / 0.7195 GB, free: 23.49 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001636/0.4157, allocations: 0.6773 MB / 0.7201 GB, free: 23.07 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.4171, allocations: 1.29 MB / 0.7214 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.644e-05/0.4172, allocations: 0 / 0.7214 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.4172, allocations: 9.766 kB / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 7.38e-05/0.4173, allocations: 17 kB / 0.7214 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007356/0.418, allocations: 316.8 kB / 0.7217 GB, free: 21.97 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.4184, allocations: 257.1 kB / 0.722 GB, free: 21.86 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.4185, allocations: 14.81 kB / 0.722 GB, free: 21.85 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.4186, allocations: 139.8 kB / 0.7221 GB, free: 21.79 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.4188, allocations: 86.38 kB / 0.7222 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 3.94e-05/0.4188, allocations: 21.38 kB / 0.7222 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 7.677e-05/0.4189, allocations: 35.5 kB / 0.7223 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.4189, allocations: 18.11 kB / 0.7223 GB, free: 21.75 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 8.166e-05/0.419, allocations: 87.52 kB / 0.7224 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.4193, allocations: 265 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4193, allocations: 1.156 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.887e-06/0.4194, allocations: 0.9375 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.655e-06/0.4194, allocations: 0 / 0.7226 GB, free: 21.61 MB / 0.6355 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.0004866/0.4198, allocations: 421.2 kB / 0.723 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4199, allocations: 10.53 kB / 0.723 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.075e-05/0.42, allocations: 15.67 kB / 0.723 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.138e-05/0.42, allocations: 125.2 kB / 0.7232 GB, free: 21.07 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.4201, allocations: 12.16 kB / 0.7232 GB, free: 21.07 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.4201, allocations: 17.88 kB / 0.7232 GB, free: 21.06 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.4202, allocations: 56.69 kB / 0.7233 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.4202, allocations: 5.438 kB / 0.7233 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.4202, allocations: 0 / 0.7233 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.4202, allocations: 1.469 kB / 0.7233 GB, free: 21.02 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.144e-05/0.4203, allocations: 21.06 kB / 0.7233 GB, free: 21.01 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004023/0.4207, allocations: 311.9 kB / 0.7236 GB, free: 20.77 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.876e-05/0.4207, allocations: 33.78 kB / 0.7236 GB, free: 20.74 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.982e-05/0.4208, allocations: 18.06 kB / 0.7236 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.4208, allocations: 1.094 kB / 0.7236 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.421, allocations: 109.7 kB / 0.7237 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.421, allocations: 0 / 0.7237 GB, free: 20.66 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003195/0.4213, allocations: 138.5 kB / 0.7239 GB, free: 20.59 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.4213, allocations: 55.2 kB / 0.7239 GB, free: 20.53 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.625e-05/0.4214, allocations: 137.3 kB / 0.724 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.4214, allocations: 35.55 kB / 0.7241 GB, free: 20.38 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/0.4215, allocations: 98.69 kB / 0.7242 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.4215, allocations: 21.19 kB / 0.7242 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.239e-05/0.4216, allocations: 70.42 kB / 0.7243 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.319e-05/0.4216, allocations: 321.8 kB / 0.7246 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.4218, allocations: 187.7 kB / 0.7247 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.4219, allocations: 223.9 kB / 0.725 GB, free: 19.61 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.4221, allocations: 249.3 kB / 0.7252 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4221, allocations: 1.219 kB / 0.7252 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004391/0.4225, allocations: 471.9 kB / 0.7256 GB, free: 19.08 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.4226, allocations: 101.4 kB / 0.7257 GB, free: 18.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4226, allocations: 1.594 kB / 0.7257 GB, free: 18.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.4226, allocations: 2.375 kB / 0.7257 GB, free: 18.98 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.011e-05/0.4226, allocations: 8.156 kB / 0.7258 GB, free: 18.98 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4226, allocations: 3.266 kB / 0.7258 GB, free: 18.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.4229, allocations: 88.09 kB / 0.7258 GB, free: 18.96 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-05/0.423, allocations: 21.52 kB / 0.7259 GB, free: 18.96 MB / 0.6355 GB 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 8.982e-05/0.4231, allocations: 134.2 kB / 0.726 GB, free: 18.83 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.4231, allocations: 8.594 kB / 0.726 GB, free: 18.83 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.555e-05/0.4231, allocations: 11.61 kB / 0.726 GB, free: 18.82 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4231, allocations: 1.797 kB / 0.726 GB, free: 18.82 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.4231, allocations: 3.938 kB / 0.726 GB, free: 18.82 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4231, allocations: 0.6094 kB / 0.726 GB, free: 18.82 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.506e-05/0.4232, allocations: 131.8 kB / 0.7261 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4232, allocations: 0.6562 kB / 0.7261 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-06/0.4232, allocations: 1.922 kB / 0.7261 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4232, allocations: 1.406 kB / 0.7261 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.4232, allocations: 6.719 kB / 0.7262 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4232, allocations: 1.375 kB / 0.7262 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.4232, allocations: 0 / 0.7262 GB, free: 18.68 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.4233, allocations: 141.9 kB / 0.7263 GB, free: 18.58 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.4234, allocations: 6.203 kB / 0.7263 GB, free: 18.58 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.4234, allocations: 6.609 kB / 0.7263 GB, free: 18.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.4234, allocations: 1.422 kB / 0.7263 GB, free: 18.57 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.4234, allocations: 11.86 kB / 0.7263 GB, free: 18.57 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.4234, allocations: 8.5 kB / 0.7263 GB, free: 18.57 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.168e-05/0.4235, allocations: 97.83 kB / 0.7264 GB, free: 18.49 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4235, allocations: 1.438 kB / 0.7264 GB, free: 18.49 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002027/0.4237, allocations: 51.58 kB / 0.7265 GB, free: 18.48 MB / 0.6355 GB 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.000116/0.4238, allocations: 101.2 kB / 0.7266 GB, free: 18.39 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003633/0.4241, allocations: 420.2 kB / 0.727 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4241, allocations: 5.531 kB / 0.727 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.731e-05/0.4242, allocations: 40.31 kB / 0.727 GB, free: 18.02 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.4244, allocations: 30.42 kB / 0.727 GB, free: 18.01 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00033/0.4248, allocations: 216.5 kB / 0.7272 GB, free: 17.82 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.135e-05/0.4248, allocations: 81.09 kB / 0.7273 GB, free: 17.75 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.38e-05/0.4248, allocations: 17.83 kB / 0.7273 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of SimCode: time 8.11e-07/0.4248, allocations: 1.375 kB / 0.7273 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of Templates: time 0.00414/0.429, allocations: 1.916 MB / 0.7292 GB, free: 17.55 MB / 0.6355 GB " [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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.564820736180991] Failed to read output from testmodel.py, exit status != 0: 0.4351290790364146 0.44520125600000005 0.023960285 Calling exit ...