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.0008274/0.0008274, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001021/0.001021, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.742 MB / 186.7 MB " [Timeout remaining time 179] 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 0.7345/0.7345, allocations: 154.6 MB / 413.7 MB, free: 0.7773 MB / 378.7 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 179] 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: "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.186e-06/3.186e-06, allocations: 0 / 0.6181 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.141e-05/2.46e-05, allocations: 6.281 kB / 0.6181 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001792/0.001817, allocations: 0.7853 MB / 0.6189 GB, free: 12.83 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.003059, allocations: 1.322 MB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.053e-05/0.00311, allocations: 4 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.481e-05/0.003145, allocations: 11.81 kB / 0.6202 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.024e-05/0.003215, allocations: 27.72 kB / 0.6202 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.003778, allocations: 327.8 kB / 0.6205 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.004003, allocations: 291.5 kB / 0.6208 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.004123, allocations: 33.55 kB / 0.6208 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.004263, allocations: 155.8 kB / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.004386, allocations: 91.77 kB / 0.6211 GB, free: 10.58 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.004418, allocations: 24 kB / 0.6211 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.809e-05/0.004486, allocations: 39.94 kB / 0.6211 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.004516, allocations: 27.91 kB / 0.6212 GB, free: 10.49 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.448e-05/0.004591, allocations: 87.8 kB / 0.6212 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.004857, allocations: 315.2 kB / 0.6215 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.004861, allocations: 0 / 0.6215 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.204e-06/0.004863, allocations: 4 kB / 0.6215 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.004867, allocations: 0 / 0.6215 GB, free: 10.09 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.0005021/0.005369, allocations: 458.8 kB / 0.622 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.005408, allocations: 12.03 kB / 0.622 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.263e-05/0.005441, allocations: 42.73 kB / 0.622 GB, free: 9.531 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.005495, allocations: 24.84 kB / 0.6221 GB, free: 9.508 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.183e-05/0.005577, allocations: 130.2 kB / 0.6222 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.005607, allocations: 12.38 kB / 0.6222 GB, free: 9.344 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.005635, allocations: 20.12 kB / 0.6222 GB, free: 9.324 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.005777, allocations: 91.72 kB / 0.6223 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.005784, allocations: 0 / 0.6223 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.005796, allocations: 7.984 kB / 0.6223 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.005802, allocations: 4 kB / 0.6223 GB, free: 9.219 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.713e-05/0.005879, allocations: 39.98 kB / 0.6224 GB, free: 9.18 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005143/0.006394, allocations: 415.5 kB / 0.6227 GB, free: 8.73 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.006594, allocations: 70.55 kB / 0.6228 GB, free: 8.652 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.925e-05/0.006633, allocations: 24.92 kB / 0.6228 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.006643, allocations: 0 / 0.6228 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001809/0.006824, allocations: 115.3 kB / 0.6229 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.006825, allocations: 0 / 0.6229 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0002683/0.007093, allocations: 173.6 kB / 0.6231 GB, free: 8.324 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.007131, allocations: 55.41 kB / 0.6232 GB, free: 8.258 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.007231, allocations: 166.2 kB / 0.6233 GB, free: 8.086 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.007257, allocations: 33.64 kB / 0.6234 GB, free: 8.047 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/0.007319, allocations: 124 kB / 0.6235 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.007345, allocations: 27.75 kB / 0.6235 GB, free: 7.895 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.007425, allocations: 73.67 kB / 0.6236 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.007504, allocations: 326.8 kB / 0.6239 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.007679, allocations: 193 kB / 0.6241 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.007853, allocations: 236.3 kB / 0.6243 GB, free: 7.016 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.008051, allocations: 251 kB / 0.6245 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.008053, allocations: 0 / 0.6245 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000428/0.008481, allocations: 0.4902 MB / 0.625 GB, free: 6.199 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.008542, allocations: 97.03 kB / 0.6251 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.00855, allocations: 7.984 kB / 0.6251 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.008563, allocations: 0 / 0.6251 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.057e-05/0.008614, allocations: 23.94 kB / 0.6251 GB, free: 6.055 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.008621, allocations: 0 / 0.6251 GB, free: 6.055 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.008863, allocations: 83.98 kB / 0.6252 GB, free: 5.973 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.008891, allocations: 23.98 kB / 0.6252 GB, free: 5.949 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 9.362e-05/0.008985, allocations: 134.8 kB / 0.6254 GB, free: 5.809 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.008999, allocations: 15.91 kB / 0.6254 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.009029, allocations: 20.72 kB / 0.6254 GB, free: 5.77 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.009031, allocations: 0 / 0.6254 GB, free: 5.77 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.009037, allocations: 0 / 0.6254 GB, free: 5.77 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.009042, allocations: 0 / 0.6254 GB, free: 5.77 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.009172, allocations: 184.7 kB / 0.6256 GB, free: 5.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.009174, allocations: 0 / 0.6256 GB, free: 5.547 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.518e-05/0.009199, allocations: 12 kB / 0.6256 GB, free: 5.535 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.009201, allocations: 3.938 kB / 0.6256 GB, free: 5.531 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.009212, allocations: 7.938 kB / 0.6256 GB, free: 5.523 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.009212, allocations: 0 / 0.6256 GB, free: 5.523 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.009214, allocations: 0 / 0.6256 GB, free: 5.523 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.009382, allocations: 168.7 kB / 0.6258 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.389e-05/0.009396, allocations: 15.88 kB / 0.6258 GB, free: 5.328 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.009411, allocations: 7.938 kB / 0.6258 GB, free: 5.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.865e-05/0.009429, allocations: 0 / 0.6258 GB, free: 5.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.009469, allocations: 15.98 kB / 0.6258 GB, free: 5.305 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.009481, allocations: 7.984 kB / 0.6258 GB, free: 5.297 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.619e-05/0.009537, allocations: 116.6 kB / 0.6259 GB, free: 5.184 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009538, allocations: 0 / 0.6259 GB, free: 5.184 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001779/0.009715, allocations: 55.94 kB / 0.626 GB, free: 5.129 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 0.0003718/0.01009, allocations: 0.6993 MB / 0.6267 GB, free: 4.402 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003487/0.01044, allocations: 435.5 kB / 0.6271 GB, free: 3.922 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.01044, allocations: 4.062 kB / 0.6271 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.205e-05/0.01049, allocations: 47.84 kB / 0.6271 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.01069, allocations: 27.97 kB / 0.6271 GB, free: 3.844 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.01273, allocations: 2.612 MB / 0.6297 GB, free: 1.02 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.733e-05/0.01279, allocations: 98.77 kB / 0.6298 GB, free: 0.9062 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.1e-05/0.01283, allocations: 8.656 kB / 0.6298 GB, free: 0.8945 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.01288, allocations: 40.48 kB / 0.6298 GB, free: 0.8555 MB / 0.5886 GB Notification: Performance of SimCode: time 1.473e-06/0.01289, allocations: 0 / 0.6298 GB, free: 0.8555 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.03276, allocations: 5.215 MB / 0.6349 GB, free: 11.85 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.105/7.137, allocations: 20.33 kB / 0.6349 GB, free: 11.84 MB / 0.6042 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.923357891850173] Failed to read output from testmodel.py, exit status != 0: 7.22149620950222 7.236880812 7.230106136 Calling exit ...