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.000898/0.000898, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.001417/0.001417, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.9574/0.9574, allocations: 177.1 MB / 202.8 MB, free: 5.727 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.7343/0.7343, allocations: 154.6 MB / 413.7 MB, free: 0.8164 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: Performance of FrontEnd - loaded program: time 3.186e-06/3.186e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.413e-05/2.731e-05, allocations: 8.344 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00157/0.001597, allocations: 0.7655 MB / 0.6189 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.002792, allocations: 1.17 MB / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.326e-05/0.002845, allocations: 3.938 kB / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.418e-05/0.002879, allocations: 7.922 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.558e-05/0.002955, allocations: 15.86 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.003394, allocations: 134.6 kB / 0.6202 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.003549, allocations: 127.7 kB / 0.6203 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.003652, allocations: 15.97 kB / 0.6203 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.003775, allocations: 71.89 kB / 0.6204 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 9.513e-05/0.00387, allocations: 39.92 kB / 0.6204 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.003896, allocations: 12 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.275e-05/0.003959, allocations: 23.92 kB / 0.6204 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.635e-05/0.003985, allocations: 15.94 kB / 0.6205 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.975e-05/0.004035, allocations: 39.89 kB / 0.6205 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.0042, allocations: 131.7 kB / 0.6206 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.004203, allocations: 4 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.413e-06/0.004204, allocations: 0 / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.004209, allocations: 7.938 kB / 0.6206 GB, free: 11.11 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007741/0.004983, allocations: 339.8 kB / 0.621 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.005025, allocations: 13.47 kB / 0.621 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.847e-05/0.005054, allocations: 34.75 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.005097, allocations: 12.88 kB / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.491e-05/0.005182, allocations: 125.6 kB / 0.6211 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.005195, allocations: 384 / 0.6211 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.005214, allocations: 16.38 kB / 0.6211 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.005387, allocations: 74.2 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.005396, allocations: 192 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.005406, allocations: 384 / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.005413, allocations: 8.125 kB / 0.6212 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.005565, allocations: 63.92 kB / 0.6213 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003982/0.005963, allocations: 287.8 kB / 0.6216 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.006082, allocations: 54.55 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.328e-05/0.006165, allocations: 44.84 kB / 0.6217 GB, free: 9.922 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.006186, allocations: 0 / 0.6217 GB, free: 9.922 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.006404, allocations: 95.34 kB / 0.6217 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.006406, allocations: 4 kB / 0.6217 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0003731/0.006779, allocations: 169.5 kB / 0.6219 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.006813, allocations: 51.41 kB / 0.622 GB, free: 9.578 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.226e-05/0.006885, allocations: 126.1 kB / 0.6221 GB, free: 9.441 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.006901, allocations: 25.7 kB / 0.6221 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/0.006947, allocations: 104.1 kB / 0.6222 GB, free: 9.305 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.006963, allocations: 15.84 kB / 0.6222 GB, free: 9.289 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.035e-05/0.007014, allocations: 37.69 kB / 0.6223 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.00709, allocations: 318.8 kB / 0.6226 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.007227, allocations: 85.64 kB / 0.6226 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.007357, allocations: 112.2 kB / 0.6227 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.007558, allocations: 148.1 kB / 0.6229 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.007561, allocations: 0 / 0.6229 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005616/0.008122, allocations: 248.8 kB / 0.6231 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.471e-05/0.008167, allocations: 37.77 kB / 0.6232 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.008175, allocations: 0 / 0.6232 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.008194, allocations: 0 / 0.6232 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.0083, allocations: 23.91 kB / 0.6232 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.008308, allocations: 3.938 kB / 0.6232 GB, free: 8.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.008438, allocations: 44.22 kB / 0.6232 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.008454, allocations: 4 kB / 0.6232 GB, free: 8.172 MB / 0.5886 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 9.646e-05/0.008551, allocations: 130.9 kB / 0.6234 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.008709, allocations: 7.891 kB / 0.6234 GB, free: 8.027 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.344e-05/0.008742, allocations: 16.44 kB / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.008746, allocations: 0 / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.008751, allocations: 0 / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.008755, allocations: 0 / 0.6234 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.008874, allocations: 152.7 kB / 0.6235 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.008875, allocations: 0 / 0.6235 GB, free: 7.816 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-05/0.008933, allocations: 11.98 kB / 0.6235 GB, free: 7.805 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.008935, allocations: 4 kB / 0.6235 GB, free: 7.801 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.008944, allocations: 8 kB / 0.6236 GB, free: 7.793 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.008947, allocations: 3.984 kB / 0.6236 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.008949, allocations: 0 / 0.6236 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.009177, allocations: 148.9 kB / 0.6237 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.176e-05/0.009188, allocations: 11.98 kB / 0.6237 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.0092, allocations: 0 / 0.6237 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.973e-05/0.00924, allocations: 19.98 kB / 0.6237 GB, free: 7.594 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.009282, allocations: 7.984 kB / 0.6237 GB, free: 7.586 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.009287, allocations: 0 / 0.6237 GB, free: 7.586 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.586e-05/0.009333, allocations: 98.64 kB / 0.6238 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.009333, allocations: 0 / 0.6238 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001608/0.009494, allocations: 27.94 kB / 0.6239 GB, free: 7.465 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: 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.0005188/0.01001, allocations: 0.6905 MB / 0.6245 GB, free: 6.746 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003074/0.01032, allocations: 204.9 kB / 0.6247 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01032, allocations: 0 / 0.6247 GB, free: 6.527 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 9.35e-05/0.01042, allocations: 48.14 kB / 0.6248 GB, free: 6.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.0106, allocations: 20.25 kB / 0.6248 GB, free: 6.461 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.01227, allocations: 1.749 MB / 0.6265 GB, free: 4.582 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.457e-05/0.01232, allocations: 75.33 kB / 0.6266 GB, free: 4.488 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.011e-05/0.01236, allocations: 7.938 kB / 0.6266 GB, free: 4.48 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.01241, allocations: 24.48 kB / 0.6266 GB, free: 4.457 MB / 0.5886 GB Notification: Performance of SimCode: time 7.02e-07/0.01241, allocations: 0 / 0.6266 GB, free: 4.457 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.02834, allocations: 3.493 MB / 0.63 GB, free: 1.152 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/7.018, allocations: 7.234 kB / 0.63 GB, free: 1.148 MB / 0.5886 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.931781955994666] Failed to read output from testmodel.py, exit status != 0: 7.099098773673177 7.111147276 7.105066735 Calling exit ...