Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008005/0.0008005, 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.0008133/0.0008133, allocations: 169.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.8806/0.8806, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.7139/0.7139, allocations: 154.6 MB / 413.8 MB, free: 0.8086 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.Reals.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 0.6181 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.644e-05/1.911e-05, allocations: 5.375 kB / 0.6182 GB, free: 13.62 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00174/0.001759, allocations: 0.7674 MB / 0.6189 GB, free: 12.86 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.00148/0.003239, allocations: 1.178 MB / 0.6201 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.251e-05/0.003291, allocations: 0 / 0.6201 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.003325, allocations: 3.938 kB / 0.6201 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.759e-05/0.003402, allocations: 19.8 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005045/0.003907, allocations: 141.4 kB / 0.6202 GB, free: 11.51 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.004108, allocations: 127.7 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.665e-05/0.004205, allocations: 12 kB / 0.6203 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.004338, allocations: 79.86 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.004436, allocations: 43.81 kB / 0.6205 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.004466, allocations: 12 kB / 0.6205 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.004532, allocations: 20 kB / 0.6205 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.004557, allocations: 15.97 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.004617, allocations: 35.91 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.004817, allocations: 143.6 kB / 0.6207 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.004819, allocations: 0 / 0.6207 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.273e-06/0.00482, allocations: 0 / 0.6207 GB, free: 11.03 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.004824, allocations: 0 / 0.6207 GB, free: 11.03 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.0005825/0.005407, allocations: 351.8 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.005444, allocations: 8.031 kB / 0.621 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.005478, allocations: 30.75 kB / 0.6211 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.415e-05/0.005522, allocations: 12.89 kB / 0.6211 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.834e-05/0.005611, allocations: 113.7 kB / 0.6212 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.005629, allocations: 8.375 kB / 0.6212 GB, free: 10.44 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.005653, allocations: 8.359 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.005887, allocations: 82.14 kB / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.005897, allocations: 4.188 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.005907, allocations: 384 / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.005914, allocations: 4.125 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.006156, allocations: 71.92 kB / 0.6213 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004402/0.006597, allocations: 271.9 kB / 0.6216 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.006767, allocations: 66.47 kB / 0.6217 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.006884, allocations: 40.86 kB / 0.6217 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.006906, allocations: 0 / 0.6217 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.007145, allocations: 95.34 kB / 0.6218 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.007146, allocations: 3.938 kB / 0.6218 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0004949/0.007641, allocations: 173.5 kB / 0.622 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.00768, allocations: 59.39 kB / 0.622 GB, free: 9.488 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.207e-05/0.007772, allocations: 129.3 kB / 0.6221 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.007796, allocations: 25.7 kB / 0.6222 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.007855, allocations: 96.12 kB / 0.6223 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.007877, allocations: 19.84 kB / 0.6223 GB, free: 9.203 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.581e-05/0.007953, allocations: 29.7 kB / 0.6223 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.008051, allocations: 326.8 kB / 0.6226 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.00826, allocations: 81.66 kB / 0.6227 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.008471, allocations: 120.2 kB / 0.6228 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.008782, allocations: 140.1 kB / 0.6229 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.008785, allocations: 0 / 0.6229 GB, free: 8.469 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004037/0.009188, allocations: 252.9 kB / 0.6232 GB, free: 8.203 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.009216, allocations: 37.69 kB / 0.6232 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.009221, allocations: 0 / 0.6232 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.009232, allocations: 64 / 0.6232 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.79e-05/0.00931, allocations: 23.98 kB / 0.6232 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.009316, allocations: 0 / 0.6232 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.009426, allocations: 40.22 kB / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.009442, allocations: 7.984 kB / 0.6233 GB, free: 8.09 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 6.861e-05/0.009511, allocations: 122.8 kB / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.009521, allocations: 15.89 kB / 0.6234 GB, free: 7.945 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.009545, allocations: 12.44 kB / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.009546, allocations: 0 / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.009552, allocations: 4 kB / 0.6234 GB, free: 7.926 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.009557, allocations: 3.984 kB / 0.6234 GB, free: 7.922 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.639e-05/0.009643, allocations: 140.7 kB / 0.6236 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.009644, allocations: 0 / 0.6236 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.351e-05/0.009687, allocations: 23.97 kB / 0.6236 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.009689, allocations: 0 / 0.6236 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-06/0.009695, allocations: 0 / 0.6236 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.009696, allocations: 0 / 0.6236 GB, free: 7.719 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.009697, allocations: 4 kB / 0.6236 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.009904, allocations: 156.9 kB / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-06/0.009911, allocations: 0 / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.009923, allocations: 4 kB / 0.6238 GB, free: 7.539 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.546e-05/0.009958, allocations: 15.97 kB / 0.6238 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.009992, allocations: 4.094 kB / 0.6238 GB, free: 7.52 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.009996, allocations: 7.875 kB / 0.6238 GB, free: 7.512 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.569e-05/0.01003, allocations: 103.3 kB / 0.6239 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01003, allocations: 0 / 0.6239 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001493/0.01018, allocations: 31.88 kB / 0.6239 GB, free: 7.379 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.0003799/0.01056, allocations: 0.6788 MB / 0.6246 GB, free: 6.672 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002764/0.01084, allocations: 208.9 kB / 0.6248 GB, free: 6.449 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01084, allocations: 0 / 0.6248 GB, free: 6.449 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 8.53e-05/0.01092, allocations: 44.14 kB / 0.6248 GB, free: 6.406 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.01107, allocations: 20.11 kB / 0.6248 GB, free: 6.387 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.01243, allocations: 1.761 MB / 0.6266 GB, free: 4.496 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.348e-05/0.01248, allocations: 75.28 kB / 0.6266 GB, free: 4.402 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.208e-05/0.01251, allocations: 11.92 kB / 0.6266 GB, free: 4.391 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.01255, allocations: 20.5 kB / 0.6267 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of SimCode: time 8.31e-07/0.01255, allocations: 0 / 0.6267 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.02744, allocations: 3.479 MB / 0.6301 GB, free: 1.082 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.996/7.024, allocations: 11.48 kB / 0.6301 GB, free: 1.074 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_OBC_CDL_Reals_Validation_Switch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.748824879527092] Failed to read output from testmodel.py, exit status != 0: 7.109969285316765 7.120456297 7.113805533 Calling exit ...