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.001378/0.001378, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.001239/0.001239, allocations: 207.6 kB / 22.25 MB, free: 3.59 MB / 13.93 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.087/1.087, allocations: 230.6 MB / 256 MB, free: 9.582 MB / 202.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.9042/0.9042, allocations: 203.5 MB / 0.5039 GB, free: 10.7 MB / 410.7 MB " [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: "" <> 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: 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.00129/0.00129, allocations: 69.3 kB / 0.7178 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.874/0.8752, allocations: 102 MB / 0.8174 GB, free: 1.238 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002431/0.8777, allocations: 0.7917 MB / 0.8182 GB, free: 0.7422 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002089/0.8798, allocations: 1.316 MB / 0.8194 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.769e-05/0.8799, allocations: 0 / 0.8194 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.291e-05/0.8799, allocations: 9.75 kB / 0.8195 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.88, allocations: 18.05 kB / 0.8195 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009713/0.881, allocations: 328.2 kB / 0.8198 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.8814, allocations: 293 kB / 0.8201 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.8816, allocations: 28.77 kB / 0.8201 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.8818, allocations: 122.8 kB / 0.8202 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.882, allocations: 98.66 kB / 0.8203 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.8821, allocations: 27.97 kB / 0.8203 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.8822, allocations: 32.97 kB / 0.8204 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.18e-05/0.8822, allocations: 23.08 kB / 0.8204 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.8823, allocations: 94.66 kB / 0.8205 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005402/0.8829, allocations: 268.4 kB / 0.8207 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 9.458e-06/0.8829, allocations: 4 kB / 0.8207 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.105e-06/0.8829, allocations: 0 / 0.8207 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.208e-05/0.8829, allocations: 3.969 kB / 0.8207 GB, free: 15.23 MB / 0.6198 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.0008151/0.8837, allocations: 463 kB / 0.8212 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.968e-05/0.8838, allocations: 11.16 kB / 0.8212 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.8838, allocations: 41.39 kB / 0.8212 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.949e-05/0.8839, allocations: 26.48 kB / 0.8213 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.8841, allocations: 123.5 kB / 0.8214 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.745e-05/0.8841, allocations: 17.44 kB / 0.8214 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.806e-05/0.8842, allocations: 16.33 kB / 0.8214 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.8844, allocations: 95.72 kB / 0.8215 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.8844, allocations: 1.906 kB / 0.8215 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.8844, allocations: 6.141 kB / 0.8215 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.8844, allocations: 1.281 kB / 0.8215 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.8845, allocations: 43.5 kB / 0.8215 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007811/0.8853, allocations: 420.8 kB / 0.822 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.8856, allocations: 65.66 kB / 0.822 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.591e-05/0.8857, allocations: 23.22 kB / 0.822 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.8857, allocations: 1.5 kB / 0.822 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003347/0.886, allocations: 126.4 kB / 0.8222 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.886, allocations: 0 / 0.8222 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0004083/0.8864, allocations: 173.7 kB / 0.8223 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.8865, allocations: 53.75 kB / 0.8224 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.8866, allocations: 165 kB / 0.8225 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.8867, allocations: 36.39 kB / 0.8226 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.567e-05/0.8867, allocations: 109.8 kB / 0.8227 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.8868, allocations: 31.36 kB / 0.8227 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.8869, allocations: 74.75 kB / 0.8228 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.887, allocations: 336.7 kB / 0.8231 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.8872, allocations: 186.5 kB / 0.8233 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.8875, allocations: 234.8 kB / 0.8235 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.8878, allocations: 253.6 kB / 0.8237 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.8878, allocations: 1.062 kB / 0.8237 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006615/0.8885, allocations: 0.4904 MB / 0.8242 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.338e-05/0.8885, allocations: 101.4 kB / 0.8243 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.8886, allocations: 2.422 kB / 0.8243 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.8886, allocations: 2.719 kB / 0.8243 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.172e-05/0.8887, allocations: 10.12 kB / 0.8243 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.8887, allocations: 6.547 kB / 0.8243 GB, free: 12.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.889, allocations: 93.5 kB / 0.8244 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.8891, allocations: 16.88 kB / 0.8244 GB, free: 12.32 MB / 0.6198 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.0001422/0.8892, allocations: 130.8 kB / 0.8246 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.8892, allocations: 13.34 kB / 0.8246 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.8893, allocations: 17.81 kB / 0.8246 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.8893, allocations: 1.781 kB / 0.8246 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.8893, allocations: 0 / 0.8246 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.8893, allocations: 6.094 kB / 0.8246 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.8895, allocations: 176.6 kB / 0.8248 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.8895, allocations: 3.938 kB / 0.8248 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.631e-05/0.8895, allocations: 13.69 kB / 0.8248 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/0.8896, allocations: 5.531 kB / 0.8248 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.8896, allocations: 2.594 kB / 0.8248 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.8896, allocations: 0 / 0.8248 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8896, allocations: 1 kB / 0.8248 GB, free: 11.99 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.8898, allocations: 170.6 kB / 0.825 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.8898, allocations: 19.98 kB / 0.825 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.8899, allocations: 1.953 kB / 0.825 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.727e-05/0.8899, allocations: 14.45 kB / 0.825 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.8899, allocations: 9.984 kB / 0.825 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.89, allocations: 4.609 kB / 0.825 GB, free: 11.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.094e-05/0.89, allocations: 119.9 kB / 0.8251 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.89, allocations: 0 / 0.8251 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00024/0.8903, allocations: 49.45 kB / 0.8252 GB, free: 11.76 MB / 0.6198 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.0008324/0.8911, allocations: 0.7098 MB / 0.8259 GB, free: 11.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005489/0.8917, allocations: 440.9 kB / 0.8263 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.8917, allocations: 1.094 kB / 0.8263 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.379e-05/0.8918, allocations: 43.08 kB / 0.8263 GB, free: 10.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.892, allocations: 26.83 kB / 0.8263 GB, free: 10.75 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003011/0.895, allocations: 2.614 MB / 0.8289 GB, free: 8.668 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.8952, allocations: 98.67 kB / 0.829 GB, free: 8.594 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.113e-05/0.8953, allocations: 11.06 kB / 0.829 GB, free: 8.594 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.424e-05/0.8953, allocations: 39.27 kB / 0.829 GB, free: 8.566 MB / 0.6198 GB Notification: Performance of SimCode: time 1.944e-06/0.8953, allocations: 0 / 0.829 GB, free: 8.566 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.9288, allocations: 5.101 MB / 0.834 GB, free: 7.391 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/8.792, allocations: 4.344 kB / 0.834 GB, free: 7.391 MB / 0.6198 GB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 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: 12.480595906730741] Failed to read output from testmodel.py, exit status != 0: 8.873370994348079 8.892155992 8.004712193 Calling exit ...