Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.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.001208/0.001208, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001461/0.001461, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.007/1.007, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.7822/0.7822, allocations: 154.9 MB / 415.9 MB, free: 256 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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0.6562 kB / 0.522 GB, free: 1.445 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.75e-05/2.943e-05, allocations: 2.312 kB / 0.522 GB, free: 1.441 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00185/0.00188, allocations: 0.7665 MB / 0.5227 GB, free: 0.6992 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.003137, allocations: 1.212 MB / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.166e-05/0.003189, allocations: 0 / 0.5239 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 3.083e-05/0.00322, allocations: 4.438 kB / 0.5239 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 9.33e-05/0.003313, allocations: 17.33 kB / 0.5239 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.003792, allocations: 127.6 kB / 0.524 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.003995, allocations: 132.6 kB / 0.5242 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.004101, allocations: 11.98 kB / 0.5242 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.004228, allocations: 69.34 kB / 0.5242 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 8.376e-05/0.004312, allocations: 43.88 kB / 0.5243 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.004336, allocations: 8 kB / 0.5243 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.378e-05/0.0044, allocations: 29.14 kB / 0.5243 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.266e-05/0.004422, allocations: 11.92 kB / 0.5243 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.004462, allocations: 35.97 kB / 0.5244 GB, free: 15 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.004598, allocations: 107.6 kB / 0.5245 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.0046, allocations: 0.7188 kB / 0.5245 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.31e-07/0.004601, allocations: 1.281 kB / 0.5245 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.004605, allocations: 0 / 0.5245 GB, free: 14.89 MB / 0.4948 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.0004101/0.005015, allocations: 438.1 kB / 0.5249 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.005047, allocations: 13.38 kB / 0.5249 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.005087, allocations: 12.89 kB / 0.5249 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.895e-05/0.005166, allocations: 116.6 kB / 0.525 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.005179, allocations: 4.375 kB / 0.525 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.005193, allocations: 5.094 kB / 0.525 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.005345, allocations: 80.69 kB / 0.5251 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.005352, allocations: 192 / 0.5251 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.005362, allocations: 4.359 kB / 0.5251 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.005368, allocations: 4.375 kB / 0.5251 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.732e-05/0.005396, allocations: 11.92 kB / 0.5251 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002856/0.005681, allocations: 290.3 kB / 0.5254 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.77e-05/0.005729, allocations: 38.92 kB / 0.5254 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.005748, allocations: 11.69 kB / 0.5254 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.005764, allocations: 0 / 0.5254 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.105e-05/0.005855, allocations: 74.58 kB / 0.5255 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=6): time 8.51e-07/0.005856, allocations: 0 / 0.5255 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=6): time 0.0001597/0.006016, allocations: 81.52 kB / 0.5256 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.006045, allocations: 55.41 kB / 0.5256 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.00612, allocations: 174.9 kB / 0.5258 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.006137, allocations: 29.7 kB / 0.5258 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.157e-05/0.006189, allocations: 142.8 kB / 0.526 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.006204, allocations: 8.875 kB / 0.526 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.006255, allocations: 43.34 kB / 0.526 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.006394, allocations: 0.4896 MB / 0.5265 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.06e-05/0.006465, allocations: 53.69 kB / 0.5266 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.695e-05/0.006532, allocations: 80.73 kB / 0.5266 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.815e-05/0.00662, allocations: 93.27 kB / 0.5267 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.006622, allocations: 0.5 kB / 0.5267 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002302/0.006852, allocations: 178.3 kB / 0.5269 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.006888, allocations: 41.64 kB / 0.5269 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.006893, allocations: 1.219 kB / 0.5269 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.006904, allocations: 0 / 0.5269 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.982e-05/0.006994, allocations: 19.98 kB / 0.527 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/0.006997, allocations: 1.781 kB / 0.527 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.007115, allocations: 31.86 kB / 0.527 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.007132, allocations: 4 kB / 0.527 GB, free: 12.05 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.605e-05/0.007228, allocations: 174.3 kB / 0.5272 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.007245, allocations: 7.953 kB / 0.5272 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.007272, allocations: 16.36 kB / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.007274, allocations: 0 / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.007276, allocations: 1.031 kB / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.00728, allocations: 4 kB / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.007381, allocations: 109.2 kB / 0.5273 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.007382, allocations: 0.9375 kB / 0.5273 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.512e-05/0.007427, allocations: 11.98 kB / 0.5273 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.007429, allocations: 2.969 kB / 0.5273 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.007437, allocations: 4 kB / 0.5273 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.007437, allocations: 3.938 kB / 0.5273 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.00744, allocations: 3.938 kB / 0.5273 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.007566, allocations: 108.3 kB / 0.5274 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.235e-06/0.007575, allocations: 3.984 kB / 0.5274 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.007588, allocations: 0 / 0.5274 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.327e-05/0.007622, allocations: 6.75 kB / 0.5274 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.007656, allocations: 15.92 kB / 0.5274 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.007661, allocations: 0 / 0.5274 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 4.7e-05/0.007708, allocations: 141.9 kB / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.007708, allocations: 0 / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002135/0.007922, allocations: 20 kB / 0.5276 GB, free: 11.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001136/0.008035, allocations: 103.7 kB / 0.5277 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001955/0.008231, allocations: 154.2 kB / 0.5278 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.008233, allocations: 4 kB / 0.5279 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.998e-05/0.008273, allocations: 19.88 kB / 0.5279 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.008458, allocations: 21.27 kB / 0.5279 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002658/0.008723, allocations: 162.6 kB / 0.528 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.22e-05/0.008755, allocations: 64.12 kB / 0.5281 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.871e-05/0.008784, allocations: 4.5 kB / 0.5281 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.917e-05/0.008883, allocations: 95.95 kB / 0.5282 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of SimCode: time 6.91e-07/0.008884, allocations: 0 / 0.5282 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of Templates: time 0.003807/0.01269, allocations: 1.918 MB / 0.5301 GB, free: 8.875 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8826199038885534]