Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001361/0.001361, allocations: 101.9 kB / 20.48 MB, free: 1.383 MB / 14.72 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.001472/0.001472, allocations: 214.3 kB / 23.78 MB, free: 4.555 MB / 14.72 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9624/0.9624, allocations: 150 MB / 463.9 MB, free: 10.22 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002028/0.002028, allocations: 67.16 kB / 0.642 GB, free: 9.91 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.204, allocations: 89.18 MB / 0.7291 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002502/0.2065, allocations: 0.7413 MB / 0.7298 GB, free: 72 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001774/0.2082, allocations: 1.174 MB / 0.731 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.765e-05/0.2083, allocations: 0 / 0.731 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.391e-05/0.2083, allocations: 3.938 kB / 0.731 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.2084, allocations: 23.86 kB / 0.731 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006019/0.209, allocations: 130.8 kB / 0.7311 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.2093, allocations: 131.7 kB / 0.7312 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.2094, allocations: 8 kB / 0.7312 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.2096, allocations: 55.83 kB / 0.7313 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.2097, allocations: 51.88 kB / 0.7313 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.2097, allocations: 12 kB / 0.7314 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.834e-05/0.2098, allocations: 27.98 kB / 0.7314 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.2099, allocations: 15.92 kB / 0.7314 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.388e-05/0.21, allocations: 43.84 kB / 0.7314 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.2102, allocations: 108 kB / 0.7315 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2102, allocations: 4 kB / 0.7315 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.305e-06/0.2102, allocations: 3.938 kB / 0.7316 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2102, allocations: 0 / 0.7316 GB, free: 14.27 MB / 0.5606 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.0008007/0.211, allocations: 359.6 kB / 0.7319 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.2111, allocations: 8.031 kB / 0.7319 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.496e-05/0.2111, allocations: 8.172 kB / 0.7319 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.233e-05/0.2111, allocations: 42.75 kB / 0.732 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.2112, allocations: 4.938 kB / 0.732 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.2113, allocations: 114.5 kB / 0.7321 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.2113, allocations: 4.375 kB / 0.7321 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.2113, allocations: 8.375 kB / 0.7321 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.2116, allocations: 81.95 kB / 0.7322 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2116, allocations: 3.984 kB / 0.7322 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.2117, allocations: 3.984 kB / 0.7322 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2117, allocations: 4 kB / 0.7322 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.2119, allocations: 71.86 kB / 0.7322 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.2125, allocations: 279.8 kB / 0.7325 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.2127, allocations: 58.53 kB / 0.7326 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.2129, allocations: 44.86 kB / 0.7326 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.2129, allocations: 0 / 0.7326 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003291/0.2133, allocations: 95.28 kB / 0.7327 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.2133, allocations: 0 / 0.7327 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0006251/0.2139, allocations: 169.5 kB / 0.7329 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.2139, allocations: 51.41 kB / 0.7329 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2141, allocations: 125.6 kB / 0.733 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.2141, allocations: 29.7 kB / 0.7331 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.221e-05/0.2142, allocations: 96.09 kB / 0.7331 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.2142, allocations: 15.95 kB / 0.7332 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.13e-05/0.2143, allocations: 41.64 kB / 0.7332 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2144, allocations: 318.8 kB / 0.7335 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.2147, allocations: 93.66 kB / 0.7336 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.2149, allocations: 112.2 kB / 0.7337 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.2153, allocations: 144.1 kB / 0.7338 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2153, allocations: 0 / 0.7338 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005951/0.2159, allocations: 248.9 kB / 0.7341 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/0.2159, allocations: 35.56 kB / 0.7341 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.216, allocations: 7.938 kB / 0.7341 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.216, allocations: 0 / 0.7341 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.2161, allocations: 19.98 kB / 0.7341 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2161, allocations: 64 / 0.7341 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.2164, allocations: 43.89 kB / 0.7342 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.2164, allocations: 7.984 kB / 0.7342 GB, free: 11.32 MB / 0.5606 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 0.0001127/0.2165, allocations: 117.9 kB / 0.7343 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.2165, allocations: 7.953 kB / 0.7343 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.2166, allocations: 12.38 kB / 0.7343 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2166, allocations: 0 / 0.7343 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2166, allocations: 320 / 0.7343 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2166, allocations: 4 kB / 0.7343 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.2168, allocations: 152.7 kB / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2168, allocations: 0 / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.2169, allocations: 27.91 kB / 0.7345 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2169, allocations: 0 / 0.7345 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2169, allocations: 4 kB / 0.7345 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2169, allocations: 3.984 kB / 0.7345 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2169, allocations: 0 / 0.7345 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.2173, allocations: 152.9 kB / 0.7346 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.972e-05/0.2173, allocations: 8.047 kB / 0.7347 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.2173, allocations: 7.938 kB / 0.7347 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.245e-05/0.2174, allocations: 11.98 kB / 0.7347 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.2175, allocations: 3.984 kB / 0.7347 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.2175, allocations: 4 kB / 0.7347 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.362e-05/0.2176, allocations: 99.27 kB / 0.7348 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.2176, allocations: 0 / 0.7348 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002605/0.2178, allocations: 20 kB / 0.7348 GB, free: 10.62 MB / 0.5606 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.0008274/0.2186, allocations: 0.6943 MB / 0.7355 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005344/0.2192, allocations: 205 kB / 0.7357 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2192, allocations: 4.062 kB / 0.7357 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.2194, allocations: 47.95 kB / 0.7357 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.2196, allocations: 12.36 kB / 0.7357 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.2222, allocations: 1.763 MB / 0.7374 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.36e-05/0.2222, allocations: 71.33 kB / 0.7375 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.786e-05/0.2223, allocations: 8 kB / 0.7375 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.881e-05/0.2223, allocations: 23.42 kB / 0.7375 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/0.2223, allocations: 0 / 0.7375 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.2486, allocations: 2.972 MB / 0.7404 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.58, allocations: 9 kB / 0.7405 GB, free: 4.809 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_OBC_CDL_Reals_Validation_Switch.fmu > IBPSA_latest_IBPSA.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.505624736077152] Failed to read output from testmodel.py, exit status != 0: 11.743473839014769 11.769359837 11.553742888 Calling exit ...