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.001055/0.001055, allocations: 105.9 kB / 18.93 MB, free: 1.27 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.0009293/0.0009293, allocations: 218.2 kB / 22.25 MB, free: 3.703 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.013/1.013, allocations: 230.6 MB / 256 MB, free: 9.812 MB / 202.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.8204/0.8204, allocations: 203.8 MB / 0.5042 GB, free: 10.75 MB / 410.7 MB " [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.0009237/0.0009237, allocations: 70.78 kB / 0.7182 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5361/0.537, allocations: 102 MB / 0.8179 GB, free: 1.238 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001659/0.5387, allocations: 0.8244 MB / 0.8187 GB, free: 0.7109 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.5401, allocations: 1.327 MB / 0.82 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.269e-05/0.5402, allocations: 0 / 0.82 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.035e-05/0.5403, allocations: 9.656 kB / 0.82 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.677e-05/0.5403, allocations: 24.52 kB / 0.82 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007127/0.5411, allocations: 326.5 kB / 0.8203 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003329/0.5414, allocations: 283.2 kB / 0.8206 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.5415, allocations: 37.78 kB / 0.8206 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.5417, allocations: 125.7 kB / 0.8207 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.5418, allocations: 116 kB / 0.8209 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.5419, allocations: 26.03 kB / 0.8209 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.91e-05/0.542, allocations: 39.61 kB / 0.8209 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.127e-05/0.542, allocations: 21.97 kB / 0.8209 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.5421, allocations: 107 kB / 0.821 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.5424, allocations: 264.8 kB / 0.8213 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5424, allocations: 0.75 kB / 0.8213 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.863e-06/0.5424, allocations: 0 / 0.8213 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.5425, allocations: 0 / 0.8213 GB, free: 15.14 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.0006324/0.5431, allocations: 471.7 kB / 0.8217 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5431, allocations: 11.69 kB / 0.8218 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.803e-05/0.5432, allocations: 42.75 kB / 0.8218 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.234e-05/0.5432, allocations: 17.91 kB / 0.8218 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.5433, allocations: 123.5 kB / 0.8219 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.5434, allocations: 17.28 kB / 0.822 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.5434, allocations: 23.47 kB / 0.822 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.5436, allocations: 88.05 kB / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.5436, allocations: 1.844 kB / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.5436, allocations: 0.6094 kB / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.5436, allocations: 3.062 kB / 0.8221 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.305e-05/0.5437, allocations: 51.17 kB / 0.8221 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005762/0.5443, allocations: 463.1 kB / 0.8226 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.5445, allocations: 67.47 kB / 0.8226 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.248e-05/0.5445, allocations: 26.92 kB / 0.8226 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.5445, allocations: 5.656 kB / 0.8226 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.5447, allocations: 119.2 kB / 0.8228 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.5447, allocations: 1.875 kB / 0.8228 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0002992/0.545, allocations: 172.4 kB / 0.8229 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.5451, allocations: 57.16 kB / 0.823 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.5452, allocations: 165.4 kB / 0.8231 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.5452, allocations: 35.48 kB / 0.8232 GB, free: 13.69 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.108e-05/0.5453, allocations: 113.6 kB / 0.8233 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.5453, allocations: 38.95 kB / 0.8233 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.09e-05/0.5454, allocations: 70.36 kB / 0.8234 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.5455, allocations: 329.5 kB / 0.8237 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.5456, allocations: 96.52 kB / 0.8238 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.5458, allocations: 146.5 kB / 0.8239 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.5461, allocations: 253 kB / 0.8242 GB, free: 12.87 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5461, allocations: 0.9688 kB / 0.8242 GB, free: 12.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004897/0.5466, allocations: 404.5 kB / 0.8246 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.812e-05/0.5466, allocations: 102.7 kB / 0.8247 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.5466, allocations: 1.312 kB / 0.8247 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.5467, allocations: 2.125 kB / 0.8247 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.22e-05/0.5467, allocations: 15.64 kB / 0.8247 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.5467, allocations: 2.781 kB / 0.8247 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.547, allocations: 92.22 kB / 0.8248 GB, free: 12.53 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.5471, allocations: 18.38 kB / 0.8248 GB, free: 12.53 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.000108/0.5472, allocations: 128.9 kB / 0.8249 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.5472, allocations: 15 kB / 0.8249 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.5472, allocations: 20.61 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.5472, allocations: 1.281 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.5472, allocations: 2.094 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5472, allocations: 0.6562 kB / 0.8249 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.5474, allocations: 192.8 kB / 0.8251 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5474, allocations: 3.938 kB / 0.8251 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.228e-05/0.5474, allocations: 10.44 kB / 0.8251 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.5474, allocations: 0 / 0.8251 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.5474, allocations: 7.875 kB / 0.8252 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5474, allocations: 0 / 0.8252 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5474, allocations: 1.875 kB / 0.8252 GB, free: 12.19 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.5476, allocations: 160.2 kB / 0.8253 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.047e-05/0.5476, allocations: 24.56 kB / 0.8253 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.5477, allocations: 6.766 kB / 0.8253 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.18e-05/0.5477, allocations: 1.797 kB / 0.8253 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.5477, allocations: 25.12 kB / 0.8254 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.5477, allocations: 4.922 kB / 0.8254 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.025e-05/0.5478, allocations: 115.3 kB / 0.8255 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5478, allocations: 5.406 kB / 0.8255 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002202/0.548, allocations: 49.55 kB / 0.8255 GB, free: 11.95 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.0004604/0.5485, allocations: 0.6996 MB / 0.8262 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004152/0.5489, allocations: 353.4 kB / 0.8265 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5489, allocations: 0 / 0.8265 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.707e-05/0.549, allocations: 47.12 kB / 0.8266 GB, free: 11.05 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002418/0.5492, allocations: 34.05 kB / 0.8266 GB, free: 11.04 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.5517, allocations: 2.247 MB / 0.8288 GB, free: 9.352 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.552, allocations: 0.7117 MB / 0.8295 GB, free: 8.652 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.462e-05/0.5521, allocations: 10.59 kB / 0.8295 GB, free: 8.652 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/0.5522, allocations: 39.27 kB / 0.8296 GB, free: 8.625 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.5522, allocations: 0 / 0.8296 GB, free: 8.625 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.5773, allocations: 4.391 MB / 0.8339 GB, free: 7.996 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.665/7.243, allocations: 6.188 kB / 0.8339 GB, free: 7.996 MB / 0.6198 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: 10.345680966041982] Failed to read output from testmodel.py, exit status != 0: 7.322824171045795 7.334042714 6.789304521 Calling exit ...