Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0008729/0.0008729, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.001119/0.001119, allocations: 211.6 kB / 22.25 MB, free: 3.586 MB / 13.93 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.9863/0.9863, allocations: 230.6 MB / 256 MB, free: 9.422 MB / 202.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.7848/0.7848, allocations: 203.5 MB / 0.5039 GB, free: 10.68 MB / 410.7 MB " [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.Integers.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_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.001171/0.001171, allocations: 67.52 kB / 0.7178 GB, free: 4.379 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5278/0.529, allocations: 102 MB / 0.8174 GB, free: 1.062 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001522/0.5305, allocations: 0.7887 MB / 0.8182 GB, free: 0.5742 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.5316, allocations: 1.313 MB / 0.8194 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.1e-05/0.5317, allocations: 3.219 kB / 0.8194 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.648e-05/0.5317, allocations: 9.844 kB / 0.8195 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.399e-05/0.5318, allocations: 20.94 kB / 0.8195 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.5324, allocations: 326.6 kB / 0.8198 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.5326, allocations: 284.6 kB / 0.8201 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.5327, allocations: 31.31 kB / 0.8201 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.5329, allocations: 120.4 kB / 0.8202 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.533, allocations: 105.8 kB / 0.8203 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.533, allocations: 25.19 kB / 0.8203 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.354e-05/0.5331, allocations: 35.84 kB / 0.8204 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.5331, allocations: 23.97 kB / 0.8204 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.352e-05/0.5332, allocations: 99.61 kB / 0.8205 GB, free: 15.15 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.5335, allocations: 261.5 kB / 0.8207 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.5335, allocations: 3.281 kB / 0.8207 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5335, allocations: 0 / 0.8207 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.5335, allocations: 0 / 0.8207 GB, free: 15.06 MB / 0.6198 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.0004948/0.534, allocations: 464 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.534, allocations: 12.75 kB / 0.8212 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.05e-05/0.5341, allocations: 41.2 kB / 0.8212 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.5341, allocations: 21.89 kB / 0.8212 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.271e-05/0.5342, allocations: 127.5 kB / 0.8214 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.5342, allocations: 22.83 kB / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.5343, allocations: 20.33 kB / 0.8214 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/0.5344, allocations: 85.33 kB / 0.8215 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.5344, allocations: 1.344 kB / 0.8215 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.5344, allocations: 8.188 kB / 0.8215 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.5344, allocations: 0 / 0.8215 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.828e-05/0.5345, allocations: 50.19 kB / 0.8215 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.535, allocations: 413 kB / 0.8219 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.5352, allocations: 65.83 kB / 0.822 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.739e-05/0.5352, allocations: 28.88 kB / 0.822 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-06/0.5352, allocations: 4 kB / 0.822 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.5354, allocations: 122.3 kB / 0.8222 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.5354, allocations: 0 / 0.8222 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0002707/0.5357, allocations: 170.7 kB / 0.8223 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.5357, allocations: 53.78 kB / 0.8224 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.582e-05/0.5358, allocations: 167.3 kB / 0.8225 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.5358, allocations: 39.58 kB / 0.8226 GB, free: 13.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.5359, allocations: 104.6 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.5359, allocations: 39.53 kB / 0.8227 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.536, allocations: 75.92 kB / 0.8228 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.5361, allocations: 328.8 kB / 0.8231 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.5363, allocations: 184.5 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.5365, allocations: 242.8 kB / 0.8235 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.5367, allocations: 250.6 kB / 0.8237 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.5367, allocations: 0 / 0.8237 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004877/0.5372, allocations: 0.4948 MB / 0.8242 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.372e-05/0.5372, allocations: 100.5 kB / 0.8243 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.5372, allocations: 5.328 kB / 0.8243 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.5372, allocations: 2.656 kB / 0.8243 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.94e-05/0.5373, allocations: 11.06 kB / 0.8243 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.5373, allocations: 3.031 kB / 0.8243 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.5376, allocations: 92.44 kB / 0.8244 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.5376, allocations: 18.69 kB / 0.8244 GB, free: 12.15 MB / 0.6198 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 8.946e-05/0.5377, allocations: 140.6 kB / 0.8246 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.5377, allocations: 15.38 kB / 0.8246 GB, free: 12.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.5377, allocations: 12.61 kB / 0.8246 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.5377, allocations: 2.656 kB / 0.8246 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5377, allocations: 4 kB / 0.8246 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.5377, allocations: 0.6562 kB / 0.8246 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.5378, allocations: 181.4 kB / 0.8248 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5379, allocations: 3.938 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.558e-05/0.5379, allocations: 14.11 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.5379, allocations: 0 / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.5379, allocations: 3.906 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.5379, allocations: 0 / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.5379, allocations: 2.016 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.5381, allocations: 162.4 kB / 0.825 GB, free: 11.71 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.737e-05/0.5381, allocations: 24.53 kB / 0.825 GB, free: 11.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.5381, allocations: 5.875 kB / 0.825 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.896e-05/0.5381, allocations: 6.5 kB / 0.825 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.5381, allocations: 12.98 kB / 0.825 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.5381, allocations: 9.578 kB / 0.825 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.862e-05/0.5382, allocations: 110.7 kB / 0.8251 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5382, allocations: 1.062 kB / 0.8251 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001814/0.5384, allocations: 48.45 kB / 0.8252 GB, free: 11.59 MB / 0.6198 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.0003635/0.5388, allocations: 0.7123 MB / 0.8259 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004001/0.5392, allocations: 442.4 kB / 0.8263 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5392, allocations: 0 / 0.8263 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.005e-05/0.5392, allocations: 41.86 kB / 0.8263 GB, free: 10.58 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.5394, allocations: 24.3 kB / 0.8264 GB, free: 10.57 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.5415, allocations: 2.615 MB / 0.8289 GB, free: 8.492 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.427e-05/0.5415, allocations: 94.55 kB / 0.829 GB, free: 8.422 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.5416, allocations: 12.55 kB / 0.829 GB, free: 8.422 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.215e-05/0.5416, allocations: 46.64 kB / 0.8291 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of SimCode: time 5.11e-07/0.5416, allocations: 0 / 0.8291 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.5591, allocations: 5.095 MB / 0.834 GB, free: 7.215 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.505/7.064, allocations: 6.344 kB / 0.834 GB, free: 7.211 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_OBC_CDL_Integers_Validation_Switch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.110811938997358] Failed to read output from testmodel.py, exit status != 0: 7.14551370497793 7.16236282 6.625992699 Calling exit ...