Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.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.001119/0.001119, allocations: 80.45 kB / 19.15 MB, free: 0.7695 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.001114/0.001114, allocations: 166.3 kB / 22.43 MB, free: 2.137 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.904/0.904, allocations: 177.2 MB / 202.8 MB, free: 5.781 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.6887/0.6887, allocations: 155 MB / 414.2 MB, free: 0.5 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.Reals.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_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.0009874/0.0009874, allocations: 74.39 kB / 0.6187 GB, free: 13.14 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4289, allocations: 102 MB / 0.7183 GB, free: 23.03 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001393/0.4302, allocations: 0.7529 MB / 0.719 GB, free: 22.55 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.4313, allocations: 1.177 MB / 0.7202 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.4313, allocations: 1.75 kB / 0.7202 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.4314, allocations: 4.594 kB / 0.7202 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 7.54e-05/0.4314, allocations: 18.67 kB / 0.7202 GB, free: 21.69 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.4319, allocations: 137.9 kB / 0.7204 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.432, allocations: 127.1 kB / 0.7205 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 9.336e-05/0.4321, allocations: 14.75 kB / 0.7205 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.4322, allocations: 75.23 kB / 0.7206 GB, free: 21.52 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 8.319e-05/0.4323, allocations: 44.53 kB / 0.7206 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.4323, allocations: 11.91 kB / 0.7206 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 5.62e-05/0.4324, allocations: 23.33 kB / 0.7206 GB, free: 21.5 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.351e-05/0.4324, allocations: 16.83 kB / 0.7207 GB, free: 21.49 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.4325, allocations: 44.22 kB / 0.7207 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001873/0.4327, allocations: 145.1 kB / 0.7208 GB, free: 21.41 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4327, allocations: 1.125 kB / 0.7208 GB, free: 21.41 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.053e-06/0.4327, allocations: 0 / 0.7208 GB, free: 21.41 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.4327, allocations: 4.703 kB / 0.7208 GB, free: 21.4 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004537/0.4331, allocations: 350.7 kB / 0.7212 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.4332, allocations: 12.06 kB / 0.7212 GB, free: 21.08 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.083e-05/0.4332, allocations: 33.3 kB / 0.7212 GB, free: 21.04 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.4332, allocations: 10.14 kB / 0.7212 GB, free: 21.04 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.008e-05/0.4333, allocations: 116.7 kB / 0.7213 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.4333, allocations: 7.688 kB / 0.7213 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.4333, allocations: 6.391 kB / 0.7213 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.4335, allocations: 83.5 kB / 0.7214 GB, free: 20.85 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.4335, allocations: 3.938 kB / 0.7214 GB, free: 20.85 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.4335, allocations: 5.953 kB / 0.7214 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4335, allocations: 1.25 kB / 0.7214 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.4337, allocations: 74.48 kB / 0.7215 GB, free: 20.83 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003449/0.434, allocations: 278.3 kB / 0.7218 GB, free: 20.57 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.4342, allocations: 59.06 kB / 0.7218 GB, free: 20.53 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.464e-05/0.4342, allocations: 47.14 kB / 0.7219 GB, free: 20.51 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4343, allocations: 2.25 kB / 0.7219 GB, free: 20.51 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.4345, allocations: 96.09 kB / 0.722 GB, free: 20.45 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.4345, allocations: 0 / 0.722 GB, free: 20.45 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003787/0.4349, allocations: 165.2 kB / 0.7221 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.4349, allocations: 55.34 kB / 0.7222 GB, free: 20.33 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.147e-05/0.435, allocations: 133.2 kB / 0.7223 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.435, allocations: 28.39 kB / 0.7223 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.598e-05/0.435, allocations: 94.19 kB / 0.7224 GB, free: 20.09 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.435, allocations: 14.81 kB / 0.7224 GB, free: 20.08 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.4351, allocations: 35.48 kB / 0.7225 GB, free: 20.05 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 2.986e-05/0.4351, allocations: 323.6 kB / 0.7228 GB, free: 19.73 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.4352, allocations: 90.95 kB / 0.7229 GB, free: 19.69 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.4354, allocations: 110.4 kB / 0.723 GB, free: 19.62 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.4356, allocations: 152 kB / 0.7231 GB, free: 19.53 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4356, allocations: 0 / 0.7231 GB, free: 19.53 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000316/0.4359, allocations: 244.7 kB / 0.7234 GB, free: 19.39 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.4359, allocations: 38.17 kB / 0.7234 GB, free: 19.36 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.4359, allocations: 1.25 kB / 0.7234 GB, free: 19.36 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.4359, allocations: 5.406 kB / 0.7234 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.393e-05/0.436, allocations: 16.41 kB / 0.7234 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.436, allocations: 2.062 kB / 0.7234 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.4362, allocations: 39.22 kB / 0.7235 GB, free: 19.35 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.4362, allocations: 10.95 kB / 0.7235 GB, free: 19.34 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 6.304e-05/0.4362, allocations: 125.4 kB / 0.7236 GB, free: 19.22 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-06/0.4362, allocations: 8.375 kB / 0.7236 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.465e-05/0.4363, allocations: 6.578 kB / 0.7236 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4363, allocations: 1.156 kB / 0.7236 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4363, allocations: 0 / 0.7236 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4363, allocations: 2.297 kB / 0.7236 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.014e-05/0.4364, allocations: 156 kB / 0.7237 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4364, allocations: 0.7969 kB / 0.7237 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.111e-05/0.4364, allocations: 17.72 kB / 0.7238 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.4364, allocations: 0 / 0.7238 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.4364, allocations: 1.344 kB / 0.7238 GB, free: 19.04 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4364, allocations: 9.688 kB / 0.7238 GB, free: 19.03 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4364, allocations: 3.938 kB / 0.7238 GB, free: 19.02 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.4366, allocations: 153.3 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-06/0.4367, allocations: 10.83 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.4367, allocations: 1.875 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.134e-05/0.4367, allocations: 12.25 kB / 0.7239 GB, free: 18.93 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/0.4368, allocations: 9.547 kB / 0.724 GB, free: 18.92 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.4368, allocations: 7.25 kB / 0.724 GB, free: 18.92 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.767e-05/0.4368, allocations: 92.97 kB / 0.7241 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4368, allocations: 3.938 kB / 0.7241 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00015/0.4369, allocations: 25.66 kB / 0.7241 GB, free: 18.83 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003471/0.4373, allocations: 0.6819 MB / 0.7247 GB, free: 18.22 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002993/0.4376, allocations: 205.6 kB / 0.7249 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.4376, allocations: 0 / 0.7249 GB, free: 18.09 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.719e-05/0.4377, allocations: 49.17 kB / 0.725 GB, free: 18.08 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.4378, allocations: 20 kB / 0.725 GB, free: 18.07 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.4391, allocations: 1.755 MB / 0.7267 GB, free: 16.62 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.812e-05/0.4392, allocations: 71.64 kB / 0.7268 GB, free: 16.55 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.216e-05/0.4392, allocations: 4.469 kB / 0.7268 GB, free: 16.55 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.153e-05/0.4392, allocations: 26.28 kB / 0.7268 GB, free: 16.53 MB / 0.6355 GB Notification: Performance of SimCode: time 4.81e-07/0.4392, allocations: 0 / 0.7268 GB, free: 16.53 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.4606, allocations: 3.497 MB / 0.7302 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.685/7.146, allocations: 7.906 kB / 0.7302 GB, free: 15.51 MB / 0.6355 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.743636747123674] Failed to read output from testmodel.py, exit status != 0: 7.226044912124053 7.238049929 6.803598743 Calling exit ...