Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.00143/0.00143, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001652/0.001652, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.9314/0.9314, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.7271/0.7271, allocations: 154.5 MB / 413.7 MB, free: 0.8203 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.Integers.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.841e-06, allocations: 0 / 0.6181 GB, free: 13.75 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.159e-05/3.743e-05, allocations: 8.734 kB / 0.6181 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002639/0.002676, allocations: 0.7864 MB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.004109, allocations: 1.322 MB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.231e-05/0.004171, allocations: 0 / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.929e-05/0.00421, allocations: 11.81 kB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 9.405e-05/0.004304, allocations: 27.78 kB / 0.6202 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006585/0.004963, allocations: 326.5 kB / 0.6205 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.00523, allocations: 295.4 kB / 0.6208 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.005369, allocations: 21.62 kB / 0.6208 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.005526, allocations: 159.8 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002939/0.00582, allocations: 91.78 kB / 0.621 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.409e-05/0.005854, allocations: 28 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.459e-05/0.005929, allocations: 39.98 kB / 0.6211 GB, free: 10.64 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 3.184e-05/0.00596, allocations: 27.84 kB / 0.6211 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 8.132e-05/0.006042, allocations: 91.8 kB / 0.6212 GB, free: 10.52 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002935/0.006335, allocations: 303.3 kB / 0.6215 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.00634, allocations: 4 kB / 0.6215 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.794e-06/0.006342, allocations: 0 / 0.6215 GB, free: 10.22 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.006347, allocations: 3.938 kB / 0.6215 GB, free: 10.22 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.0005468/0.006894, allocations: 462.8 kB / 0.6219 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.006939, allocations: 9.469 kB / 0.6219 GB, free: 9.711 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.211e-05/0.006971, allocations: 38.75 kB / 0.622 GB, free: 9.664 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.007028, allocations: 28.83 kB / 0.622 GB, free: 9.637 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.178e-05/0.007109, allocations: 122.2 kB / 0.6221 GB, free: 9.492 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.007137, allocations: 12.38 kB / 0.6221 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.007169, allocations: 24.12 kB / 0.6222 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.007307, allocations: 87.53 kB / 0.6222 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.007316, allocations: 0 / 0.6222 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.007327, allocations: 8 kB / 0.6222 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.007332, allocations: 0 / 0.6222 GB, free: 9.359 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.003e-05/0.007412, allocations: 39.98 kB / 0.6223 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.007906, allocations: 419.5 kB / 0.6227 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.008079, allocations: 74.56 kB / 0.6228 GB, free: 8.785 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.307e-05/0.008122, allocations: 24.91 kB / 0.6228 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.008132, allocations: 0 / 0.6228 GB, free: 8.758 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.008315, allocations: 111.3 kB / 0.6229 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.008316, allocations: 0 / 0.6229 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14): time 0.0002804/0.008597, allocations: 185.5 kB / 0.6231 GB, free: 8.449 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.008639, allocations: 55.41 kB / 0.6231 GB, free: 8.383 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.00874, allocations: 161.1 kB / 0.6233 GB, free: 8.219 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.00877, allocations: 33.7 kB / 0.6233 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.008831, allocations: 112.1 kB / 0.6234 GB, free: 8.066 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.008854, allocations: 39.67 kB / 0.6234 GB, free: 8.027 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.804e-05/0.008942, allocations: 73.67 kB / 0.6235 GB, free: 7.949 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.444e-05/0.009026, allocations: 326.8 kB / 0.6238 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.009215, allocations: 185 kB / 0.624 GB, free: 7.422 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.009404, allocations: 234.3 kB / 0.6242 GB, free: 7.156 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.009943, allocations: 256.7 kB / 0.6245 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.009947, allocations: 4 kB / 0.6245 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004629/0.01041, allocations: 497.8 kB / 0.6249 GB, free: 6.336 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.01047, allocations: 109 kB / 0.6251 GB, free: 6.211 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01047, allocations: 0 / 0.6251 GB, free: 6.211 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.01049, allocations: 4 kB / 0.6251 GB, free: 6.207 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.914e-05/0.01053, allocations: 11.94 kB / 0.6251 GB, free: 6.195 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.01054, allocations: 7.984 kB / 0.6251 GB, free: 6.188 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.01079, allocations: 87.98 kB / 0.6252 GB, free: 6.102 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.01081, allocations: 15.98 kB / 0.6252 GB, free: 6.086 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 9.686e-05/0.01091, allocations: 134.8 kB / 0.6253 GB, free: 5.945 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.01092, allocations: 11.91 kB / 0.6253 GB, free: 5.934 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.01095, allocations: 24.7 kB / 0.6253 GB, free: 5.902 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.01096, allocations: 4 kB / 0.6253 GB, free: 5.898 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.01096, allocations: 0 / 0.6253 GB, free: 5.898 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.01097, allocations: 0 / 0.6253 GB, free: 5.898 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.01109, allocations: 172.7 kB / 0.6255 GB, free: 5.688 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.01109, allocations: 4 kB / 0.6255 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-05/0.01112, allocations: 11.98 kB / 0.6255 GB, free: 5.672 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.01112, allocations: 0 / 0.6255 GB, free: 5.672 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.01113, allocations: 7.938 kB / 0.6255 GB, free: 5.664 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.01113, allocations: 0 / 0.6255 GB, free: 5.664 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01113, allocations: 0 / 0.6255 GB, free: 5.664 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.0113, allocations: 176.1 kB / 0.6257 GB, free: 5.477 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.438e-05/0.01131, allocations: 15.89 kB / 0.6257 GB, free: 5.461 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.01133, allocations: 11.92 kB / 0.6257 GB, free: 5.449 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.145e-05/0.01135, allocations: 4 kB / 0.6257 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.01139, allocations: 15.97 kB / 0.6257 GB, free: 5.43 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.01139, allocations: 4 kB / 0.6257 GB, free: 5.426 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.953e-05/0.01145, allocations: 120.1 kB / 0.6259 GB, free: 5.309 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.01145, allocations: 0 / 0.6259 GB, free: 5.309 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002003/0.01165, allocations: 51.95 kB / 0.6259 GB, free: 5.258 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.0003996/0.01205, allocations: 0.7144 MB / 0.6266 GB, free: 4.516 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003637/0.01242, allocations: 431.2 kB / 0.627 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01242, allocations: 0 / 0.627 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.327e-05/0.01247, allocations: 43.92 kB / 0.6271 GB, free: 3.996 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.01266, allocations: 27.97 kB / 0.6271 GB, free: 3.969 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.0148, allocations: 2.619 MB / 0.6296 GB, free: 1.137 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.417e-05/0.01485, allocations: 90.78 kB / 0.6297 GB, free: 1.031 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.733e-05/0.01489, allocations: 12.64 kB / 0.6297 GB, free: 1.016 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.01504, allocations: 40.48 kB / 0.6298 GB, free: 0.9766 MB / 0.5886 GB Notification: Performance of SimCode: time 1.603e-06/0.01504, allocations: 0 / 0.6298 GB, free: 0.9766 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.03638, allocations: 5.214 MB / 0.6349 GB, free: 11.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.799/6.835, allocations: 10.5 kB / 0.6349 GB, free: 11.97 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.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_Integers_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.71172159165144] Failed to read output from testmodel.py, exit status != 0: 6.9228996727615595 6.933528608 6.924262018 Calling exit ...