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.0008139/0.0008139, 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.0008828/0.0008828, 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.9507/0.9507, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.7543/0.7543, allocations: 154.5 MB / 413.7 MB, free: 0.8125 MB / 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: Performance of FrontEnd - loaded program: time 2.645e-06/2.645e-06, allocations: 0 / 0.618 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.364e-05/2.629e-05, allocations: 2.281 kB / 0.618 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001601/0.001627, allocations: 0.791 MB / 0.6188 GB, free: 12.91 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.003019, allocations: 1.326 MB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.003084, allocations: 0 / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.765e-05/0.003122, allocations: 15.8 kB / 0.6201 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.842e-05/0.00322, allocations: 19.8 kB / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.003912, allocations: 329.5 kB / 0.6205 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.004189, allocations: 295.4 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.004315, allocations: 29.62 kB / 0.6208 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.004487, allocations: 159.8 kB / 0.6209 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.004622, allocations: 87.78 kB / 0.621 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.004656, allocations: 24 kB / 0.621 GB, free: 10.63 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.543e-05/0.004732, allocations: 36 kB / 0.6211 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.44e-05/0.004786, allocations: 31.84 kB / 0.6211 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 8.845e-05/0.004874, allocations: 83.86 kB / 0.6212 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.005206, allocations: 315.2 kB / 0.6215 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.005211, allocations: 0 / 0.6215 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.863e-06/0.005212, allocations: 3.938 kB / 0.6215 GB, free: 10.17 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.005219, allocations: 0 / 0.6215 GB, free: 10.17 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.0005654/0.005785, allocations: 458.8 kB / 0.6219 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.005832, allocations: 9.469 kB / 0.6219 GB, free: 9.668 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.576e-05/0.005928, allocations: 42.73 kB / 0.622 GB, free: 9.617 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.057e-05/0.005988, allocations: 20.84 kB / 0.622 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.377e-05/0.006082, allocations: 126.2 kB / 0.6221 GB, free: 9.449 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.006113, allocations: 16.36 kB / 0.6221 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.006145, allocations: 28.12 kB / 0.6222 GB, free: 9.406 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.006295, allocations: 87.72 kB / 0.6222 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.006304, allocations: 0 / 0.6222 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.006315, allocations: 0 / 0.6222 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.006323, allocations: 7.984 kB / 0.6222 GB, free: 9.309 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.523e-05/0.006408, allocations: 47.97 kB / 0.6223 GB, free: 9.262 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005434/0.006951, allocations: 415.5 kB / 0.6227 GB, free: 8.812 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.007155, allocations: 66.62 kB / 0.6227 GB, free: 8.738 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.878e-05/0.007194, allocations: 24.84 kB / 0.6228 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.007206, allocations: 4 kB / 0.6228 GB, free: 8.707 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001974/0.007403, allocations: 130.8 kB / 0.6229 GB, free: 8.57 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.007405, allocations: 0 / 0.6229 GB, free: 8.57 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0002886/0.007693, allocations: 173.6 kB / 0.6231 GB, free: 8.395 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.00773, allocations: 51.41 kB / 0.6231 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.00784, allocations: 169.1 kB / 0.6233 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.007869, allocations: 33.7 kB / 0.6233 GB, free: 8.121 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.799e-05/0.007937, allocations: 108 kB / 0.6234 GB, free: 8.012 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.007961, allocations: 35.73 kB / 0.6234 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.575e-05/0.008057, allocations: 73.67 kB / 0.6235 GB, free: 7.898 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.008225, allocations: 322.8 kB / 0.6238 GB, free: 7.574 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.008409, allocations: 189 kB / 0.624 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.008601, allocations: 242.3 kB / 0.6242 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.008818, allocations: 253 kB / 0.6245 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.008822, allocations: 4 kB / 0.6245 GB, free: 6.809 MB / 0.5886 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004835/0.009305, allocations: 495.5 kB / 0.625 GB, free: 6.281 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.009366, allocations: 101 kB / 0.625 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.009373, allocations: 0 / 0.625 GB, free: 6.164 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.009388, allocations: 4 kB / 0.6251 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.168e-05/0.00944, allocations: 19.92 kB / 0.6251 GB, free: 6.141 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.009448, allocations: 4 kB / 0.6251 GB, free: 6.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.009713, allocations: 83.98 kB / 0.6252 GB, free: 6.055 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.009743, allocations: 23.98 kB / 0.6252 GB, free: 6.031 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 0.00011/0.009853, allocations: 130.8 kB / 0.6253 GB, free: 5.895 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.072e-05/0.009874, allocations: 19.89 kB / 0.6253 GB, free: 5.875 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.009908, allocations: 12.72 kB / 0.6253 GB, free: 5.855 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.009912, allocations: 4 kB / 0.6253 GB, free: 5.852 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.009919, allocations: 4 kB / 0.6253 GB, free: 5.848 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.009923, allocations: 4 kB / 0.6253 GB, free: 5.844 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.01007, allocations: 176.7 kB / 0.6255 GB, free: 5.629 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.01008, allocations: 0 / 0.6255 GB, free: 5.629 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.236e-05/0.01011, allocations: 11.98 kB / 0.6255 GB, free: 5.617 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.01011, allocations: 0 / 0.6255 GB, free: 5.617 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.01012, allocations: 7.938 kB / 0.6255 GB, free: 5.609 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.01013, allocations: 4 kB / 0.6255 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.01013, allocations: 3.938 kB / 0.6255 GB, free: 5.602 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.01032, allocations: 164.9 kB / 0.6257 GB, free: 5.422 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.886e-05/0.01033, allocations: 11.89 kB / 0.6257 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.01035, allocations: 11.92 kB / 0.6257 GB, free: 5.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.358e-05/0.01038, allocations: 8 kB / 0.6257 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.01042, allocations: 7.984 kB / 0.6257 GB, free: 5.383 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.01043, allocations: 8 kB / 0.6257 GB, free: 5.375 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.042e-05/0.0105, allocations: 116.1 kB / 0.6259 GB, free: 5.262 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.0105, allocations: 3.938 kB / 0.6259 GB, free: 5.258 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002137/0.01072, allocations: 51.95 kB / 0.6259 GB, free: 5.207 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.0004975/0.01122, allocations: 0.7095 MB / 0.6266 GB, free: 4.473 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006587/0.01187, allocations: 431.4 kB / 0.627 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.01188, allocations: 0 / 0.627 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.605e-05/0.01194, allocations: 51.91 kB / 0.6271 GB, free: 3.945 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.01217, allocations: 22.33 kB / 0.6271 GB, free: 3.926 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.01426, allocations: 2.613 MB / 0.6296 GB, free: 1.098 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.821e-05/0.01432, allocations: 102.9 kB / 0.6297 GB, free: 0.9805 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.95e-05/0.01437, allocations: 8.656 kB / 0.6297 GB, free: 0.9688 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.01444, allocations: 40.48 kB / 0.6298 GB, free: 0.9297 MB / 0.5886 GB Notification: Performance of SimCode: time 8.82e-07/0.01444, allocations: 0 / 0.6298 GB, free: 0.9297 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01912/0.03356, allocations: 5.215 MB / 0.6349 GB, free: 11.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.895/6.929, allocations: 11.94 kB / 0.6349 GB, free: 11.92 MB / 0.6042 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.757975994609296] Failed to read output from testmodel.py, exit status != 0: 7.010066243819892 7.022419912 7.015069763 Calling exit ...