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.0009305/0.0009305, 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.0009545/0.0009545, allocations: 165.9 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.8621/0.8621, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.6988/0.6988, allocations: 154.6 MB / 413.8 MB, free: 0.8047 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 2.004e-06/2.004e-06, allocations: 0 / 0.6181 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.744e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001231/0.001248, allocations: 0.7854 MB / 0.6189 GB, free: 12.88 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.002365, allocations: 1.326 MB / 0.6202 GB, free: 11.54 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.169e-05/0.002416, allocations: 4 kB / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/0.002449, allocations: 19.73 kB / 0.6202 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.656e-05/0.002515, allocations: 19.8 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005613/0.003077, allocations: 331.2 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.003293, allocations: 291.5 kB / 0.6208 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.003395, allocations: 37.55 kB / 0.6208 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.003529, allocations: 159.8 kB / 0.621 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.003645, allocations: 87.8 kB / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.003675, allocations: 24 kB / 0.6211 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.185e-05/0.003737, allocations: 39.98 kB / 0.6211 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.003763, allocations: 23.91 kB / 0.6212 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.601e-05/0.003839, allocations: 95.73 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.004073, allocations: 307.2 kB / 0.6215 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004074, allocations: 0 / 0.6215 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of FrontEnd: time 8.72e-07/0.004075, allocations: 0 / 0.6215 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.004079, allocations: 0 / 0.6215 GB, free: 10.13 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.0004547/0.004534, allocations: 462.8 kB / 0.622 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.004571, allocations: 12.03 kB / 0.622 GB, free: 9.621 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.898e-05/0.0046, allocations: 46.67 kB / 0.622 GB, free: 9.566 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.101e-05/0.004651, allocations: 24.84 kB / 0.6221 GB, free: 9.543 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.00503, allocations: 122.2 kB / 0.6222 GB, free: 9.398 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.005052, allocations: 12.38 kB / 0.6222 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.005085, allocations: 28.11 kB / 0.6222 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.005209, allocations: 85.66 kB / 0.6223 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.005217, allocations: 0 / 0.6223 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.005226, allocations: 0 / 0.6223 GB, free: 9.27 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.005231, allocations: 4 kB / 0.6223 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.434e-05/0.005305, allocations: 47.97 kB / 0.6223 GB, free: 9.219 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004596/0.005765, allocations: 419.5 kB / 0.6227 GB, free: 8.766 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.005936, allocations: 66.56 kB / 0.6228 GB, free: 8.691 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.495e-05/0.005971, allocations: 24.91 kB / 0.6228 GB, free: 8.664 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-06/0.00598, allocations: 4 kB / 0.6228 GB, free: 8.66 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.006117, allocations: 107.3 kB / 0.6229 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 1.973e-06/0.006119, allocations: 3.984 kB / 0.6229 GB, free: 8.539 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0002479/0.006367, allocations: 177.6 kB / 0.6231 GB, free: 8.359 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.0064, allocations: 59.39 kB / 0.6232 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.006489, allocations: 169.7 kB / 0.6233 GB, free: 8.117 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.006517, allocations: 41.69 kB / 0.6234 GB, free: 8.07 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.006573, allocations: 112 kB / 0.6235 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.006593, allocations: 31.73 kB / 0.6235 GB, free: 7.926 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.006672, allocations: 73.67 kB / 0.6236 GB, free: 7.848 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.006758, allocations: 322.8 kB / 0.6239 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.006923, allocations: 185 kB / 0.6241 GB, free: 7.324 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.007096, allocations: 244.1 kB / 0.6243 GB, free: 7.051 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.007287, allocations: 254.9 kB / 0.6245 GB, free: 6.762 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.00729, allocations: 4 kB / 0.6245 GB, free: 6.758 MB / 0.5886 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004172/0.007707, allocations: 0.49 MB / 0.625 GB, free: 6.227 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.065e-05/0.007757, allocations: 97.03 kB / 0.6251 GB, free: 6.113 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.007764, allocations: 4 kB / 0.6251 GB, free: 6.109 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.007776, allocations: 0 / 0.6251 GB, free: 6.109 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.808e-05/0.007814, allocations: 16.11 kB / 0.6251 GB, free: 6.094 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.007819, allocations: 8 kB / 0.6251 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.008048, allocations: 83.8 kB / 0.6252 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.008073, allocations: 23.98 kB / 0.6252 GB, free: 5.98 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 8.139e-05/0.008155, allocations: 130.8 kB / 0.6254 GB, free: 5.844 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.008168, allocations: 19.91 kB / 0.6254 GB, free: 5.824 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.008193, allocations: 16.7 kB / 0.6254 GB, free: 5.805 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.008195, allocations: 4 kB / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.0082, allocations: 0 / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.008204, allocations: 0 / 0.6254 GB, free: 5.801 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.00831, allocations: 180.7 kB / 0.6256 GB, free: 5.582 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.008312, allocations: 0 / 0.6256 GB, free: 5.582 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.006e-05/0.008332, allocations: 11.98 kB / 0.6256 GB, free: 5.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.008333, allocations: 0 / 0.6256 GB, free: 5.57 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.008342, allocations: 11.94 kB / 0.6256 GB, free: 5.559 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.008343, allocations: 0 / 0.6256 GB, free: 5.559 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.008344, allocations: 4 kB / 0.6256 GB, free: 5.555 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.008484, allocations: 160.9 kB / 0.6258 GB, free: 5.379 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.263e-05/0.008496, allocations: 11.89 kB / 0.6258 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.00851, allocations: 11.92 kB / 0.6258 GB, free: 5.355 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.644e-05/0.008526, allocations: 4 kB / 0.6258 GB, free: 5.352 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.008555, allocations: 7.984 kB / 0.6258 GB, free: 5.344 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.008562, allocations: 11.94 kB / 0.6258 GB, free: 5.332 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.975e-05/0.008612, allocations: 111.2 kB / 0.6259 GB, free: 5.223 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008612, allocations: 0 / 0.6259 GB, free: 5.223 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000185/0.008797, allocations: 55.95 kB / 0.626 GB, free: 5.168 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.0003415/0.009139, allocations: 0.7102 MB / 0.6267 GB, free: 4.434 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00035/0.009489, allocations: 427.2 kB / 0.6271 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.009491, allocations: 7.938 kB / 0.6271 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.009542, allocations: 43.92 kB / 0.6271 GB, free: 3.91 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.009723, allocations: 28.34 kB / 0.6271 GB, free: 3.883 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.0118, allocations: 2.612 MB / 0.6297 GB, free: 1.059 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.477e-05/0.01186, allocations: 94.78 kB / 0.6298 GB, free: 0.9492 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.688e-05/0.0119, allocations: 12.64 kB / 0.6298 GB, free: 0.9336 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.01195, allocations: 44.48 kB / 0.6298 GB, free: 0.8906 MB / 0.5886 GB Notification: Performance of SimCode: time 4.81e-07/0.01195, allocations: 0 / 0.6298 GB, free: 0.8906 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.0283, allocations: 5.217 MB / 0.6349 GB, free: 11.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.593/6.621, allocations: 16.62 kB / 0.635 GB, free: 11.88 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 & /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: 9.188979992642999] Failed to read output from testmodel.py, exit status != 0: 6.700971497222781 6.709791499 6.70399927 Calling exit ...