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.0008053/0.0008053, allocations: 80.45 kB / 19.15 MB, free: 0.7773 MB / 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.0008897/0.0008897, allocations: 162 kB / 22.43 MB, free: 2.145 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.8882/0.8882, allocations: 177.2 MB / 202.8 MB, free: 5.781 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.7198/0.7198, allocations: 155 MB / 414.2 MB, free: 492 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: "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [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.001074/0.001074, allocations: 72.91 kB / 0.6187 GB, free: 13.21 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.4526/0.4536, allocations: 102 MB / 0.7183 GB, free: 23.18 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001483/0.4551, allocations: 0.7939 MB / 0.719 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001173/0.4563, allocations: 1.316 MB / 0.7203 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.209e-05/0.4563, allocations: 5.156 kB / 0.7203 GB, free: 21.73 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 3.622e-05/0.4564, allocations: 14.08 kB / 0.7203 GB, free: 21.72 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.4565, allocations: 20.98 kB / 0.7204 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007045/0.4572, allocations: 319.1 kB / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.4575, allocations: 296.5 kB / 0.7209 GB, free: 21.42 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.4576, allocations: 28.05 kB / 0.721 GB, free: 21.41 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.4578, allocations: 170.6 kB / 0.7211 GB, free: 21.33 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.458, allocations: 96.77 kB / 0.7212 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 4.399e-05/0.4581, allocations: 25.53 kB / 0.7212 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 8.293e-05/0.4581, allocations: 39.59 kB / 0.7213 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.4582, allocations: 21.08 kB / 0.7213 GB, free: 21.28 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 9.762e-05/0.4583, allocations: 100.4 kB / 0.7214 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.4586, allocations: 315.1 kB / 0.7217 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.4586, allocations: 0 / 0.7217 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.063e-06/0.4586, allocations: 3.938 kB / 0.7217 GB, free: 21.1 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.543e-06/0.4586, allocations: 4 kB / 0.7217 GB, free: 21.1 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004823/0.4591, allocations: 465.1 kB / 0.7221 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.4591, allocations: 11.11 kB / 0.7222 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.845e-05/0.4592, allocations: 39.8 kB / 0.7222 GB, free: 20.64 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/0.4592, allocations: 19.75 kB / 0.7222 GB, free: 20.63 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.256e-05/0.4593, allocations: 139 kB / 0.7223 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4593, allocations: 9.938 kB / 0.7224 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.4594, allocations: 20.61 kB / 0.7224 GB, free: 20.48 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001569/0.4595, allocations: 88.09 kB / 0.7225 GB, free: 20.43 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.4595, allocations: 5.062 kB / 0.7225 GB, free: 20.42 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.4595, allocations: 1.922 kB / 0.7225 GB, free: 20.42 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.4595, allocations: 10.14 kB / 0.7225 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.877e-05/0.4596, allocations: 49.27 kB / 0.7225 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.4602, allocations: 419.7 kB / 0.7229 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.4604, allocations: 71.12 kB / 0.723 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.989e-05/0.4604, allocations: 31.34 kB / 0.723 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.4604, allocations: 5.125 kB / 0.723 GB, free: 20.01 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.4606, allocations: 109.1 kB / 0.7231 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.4606, allocations: 0 / 0.7231 GB, free: 19.95 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002925/0.4609, allocations: 182 kB / 0.7233 GB, free: 19.87 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.461, allocations: 55.23 kB / 0.7234 GB, free: 19.8 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.461, allocations: 165.5 kB / 0.7235 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.4611, allocations: 35.05 kB / 0.7236 GB, free: 19.65 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.921e-05/0.4611, allocations: 117.4 kB / 0.7237 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.4611, allocations: 30.41 kB / 0.7237 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.026e-05/0.4612, allocations: 75.81 kB / 0.7238 GB, free: 19.49 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.527e-05/0.4613, allocations: 322.9 kB / 0.7241 GB, free: 19.17 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.4614, allocations: 185.3 kB / 0.7242 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.4616, allocations: 240.4 kB / 0.7245 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.4618, allocations: 256.5 kB / 0.7247 GB, free: 18.64 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4618, allocations: 1.062 kB / 0.7247 GB, free: 18.64 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004344/0.4622, allocations: 493.7 kB / 0.7252 GB, free: 18.32 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.4623, allocations: 97.3 kB / 0.7253 GB, free: 18.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.4623, allocations: 6.375 kB / 0.7253 GB, free: 18.22 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4623, allocations: 2.625 kB / 0.7253 GB, free: 18.22 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.681e-05/0.4623, allocations: 18.41 kB / 0.7253 GB, free: 18.21 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.4624, allocations: 7.5 kB / 0.7253 GB, free: 18.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.4626, allocations: 80.12 kB / 0.7254 GB, free: 18.2 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.4627, allocations: 27.06 kB / 0.7254 GB, free: 18.19 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: 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 8.628e-05/0.4628, allocations: 137.8 kB / 0.7256 GB, free: 18.06 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/0.4628, allocations: 13.98 kB / 0.7256 GB, free: 18.05 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.4628, allocations: 17 kB / 0.7256 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4628, allocations: 2.719 kB / 0.7256 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4628, allocations: 0 / 0.7256 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4628, allocations: 1.906 kB / 0.7256 GB, free: 18.04 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.4629, allocations: 179.7 kB / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4629, allocations: 1.219 kB / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-05/0.4629, allocations: 13.17 kB / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4629, allocations: 0.6094 kB / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.463, allocations: 8 kB / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.463, allocations: 0 / 0.7258 GB, free: 17.86 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.463, allocations: 9.594 kB / 0.7258 GB, free: 17.85 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.4631, allocations: 162.3 kB / 0.7259 GB, free: 17.75 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.442e-05/0.4631, allocations: 12.16 kB / 0.726 GB, free: 17.74 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.4631, allocations: 8.156 kB / 0.726 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.079e-05/0.4632, allocations: 4.656 kB / 0.726 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.4632, allocations: 13 kB / 0.726 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.4632, allocations: 6 kB / 0.726 GB, free: 17.73 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.839e-05/0.4633, allocations: 118.9 kB / 0.7261 GB, free: 17.64 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4633, allocations: 0 / 0.7261 GB, free: 17.64 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001867/0.4635, allocations: 53.61 kB / 0.7262 GB, free: 17.63 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: 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.0002955/0.4637, allocations: 0.7078 MB / 0.7268 GB, free: 16.99 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003369/0.4641, allocations: 429.5 kB / 0.7273 GB, free: 16.65 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4641, allocations: 1.219 kB / 0.7273 GB, free: 16.65 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.352e-05/0.4641, allocations: 46.31 kB / 0.7273 GB, free: 16.63 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.4644, allocations: 34 kB / 0.7273 GB, free: 16.62 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.4662, allocations: 2.621 MB / 0.7299 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.167e-05/0.4662, allocations: 102 kB / 0.73 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.193e-05/0.4663, allocations: 11.73 kB / 0.73 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.046e-05/0.4663, allocations: 40.05 kB / 0.73 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of SimCode: time 7.42e-07/0.4663, allocations: 0 / 0.73 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01975/0.4861, allocations: 5.23 MB / 0.7351 GB, free: 13.2 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.508/6.994, allocations: 9.672 kB / 0.7352 GB, free: 13.2 MB / 0.6355 GB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.678688273997977] Failed to read output from testmodel.py, exit status != 0: 7.074417321011424 7.083620276 6.623050589 Calling exit ...