Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Logical.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.0009488/0.0009488, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.001301/0.001301, allocations: 208.1 kB / 22.25 MB, free: 3.574 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 1.003/1.003, allocations: 230.6 MB / 256 MB, free: 9.605 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.8076/0.8076, allocations: 203.5 MB / 0.5039 GB, free: 10.77 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.Logical.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Logical_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.001061/0.001061, allocations: 74.56 kB / 0.7178 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5302/0.5313, allocations: 102 MB / 0.8174 GB, free: 1.234 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001375/0.5327, allocations: 0.672 MB / 0.818 GB, free: 0.8203 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.5337, allocations: 1.297 MB / 0.8193 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.27e-05/0.5338, allocations: 7.375 kB / 0.8193 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.116e-05/0.5338, allocations: 4.641 kB / 0.8193 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.86e-05/0.5339, allocations: 14.45 kB / 0.8193 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.5345, allocations: 313.3 kB / 0.8196 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.5347, allocations: 258.7 kB / 0.8199 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.5348, allocations: 11.17 kB / 0.8199 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.5349, allocations: 100.8 kB / 0.82 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.535, allocations: 80.91 kB / 0.8201 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.5351, allocations: 22.75 kB / 0.8201 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.765e-05/0.5351, allocations: 34.98 kB / 0.8201 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.5352, allocations: 11.28 kB / 0.8201 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.642e-05/0.5353, allocations: 81.06 kB / 0.8202 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.5355, allocations: 224.5 kB / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.5355, allocations: 0 / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.794e-06/0.5355, allocations: 0 / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.5355, allocations: 4 kB / 0.8204 GB, free: 15.41 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000461/0.536, allocations: 427.3 kB / 0.8208 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.536, allocations: 9.812 kB / 0.8208 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.559e-05/0.536, allocations: 31.94 kB / 0.8209 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.5361, allocations: 15.61 kB / 0.8209 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.275e-05/0.5362, allocations: 123.8 kB / 0.821 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.5362, allocations: 10.14 kB / 0.821 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.5362, allocations: 15.28 kB / 0.821 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.942e-05/0.5363, allocations: 57.27 kB / 0.8211 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.5363, allocations: 0 / 0.8211 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.5363, allocations: 5.328 kB / 0.8211 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.5363, allocations: 4.969 kB / 0.8211 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.1e-05/0.5364, allocations: 22.62 kB / 0.8211 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.5368, allocations: 334.3 kB / 0.8214 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.831e-05/0.5369, allocations: 27.88 kB / 0.8215 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.153e-05/0.5369, allocations: 26.05 kB / 0.8215 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.5369, allocations: 7.688 kB / 0.8215 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.5371, allocations: 98.83 kB / 0.8216 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.5371, allocations: 0 / 0.8216 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0002506/0.5373, allocations: 144 kB / 0.8217 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.5374, allocations: 57.97 kB / 0.8218 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.481e-05/0.5375, allocations: 141.3 kB / 0.8219 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.5375, allocations: 30.17 kB / 0.8219 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.394e-05/0.5375, allocations: 97.23 kB / 0.822 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.5376, allocations: 23.11 kB / 0.8221 GB, free: 14 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.04e-05/0.5376, allocations: 71.53 kB / 0.8221 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000217/0.5379, allocations: 324.9 kB / 0.8224 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.538, allocations: 179.3 kB / 0.8226 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.5382, allocations: 226.7 kB / 0.8228 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.5384, allocations: 238.3 kB / 0.8231 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.5384, allocations: 0 / 0.8231 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004499/0.5388, allocations: 471 kB / 0.8235 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/0.5389, allocations: 97.78 kB / 0.8236 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.5389, allocations: 5.344 kB / 0.8236 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.5389, allocations: 3.125 kB / 0.8236 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.346e-05/0.5389, allocations: 7.75 kB / 0.8236 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.5389, allocations: 7.031 kB / 0.8236 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.5392, allocations: 83.56 kB / 0.8237 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.5392, allocations: 21.53 kB / 0.8237 GB, free: 12.69 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.524e-05/0.5393, allocations: 136.3 kB / 0.8238 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.5393, allocations: 9.156 kB / 0.8239 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.445e-05/0.5394, allocations: 10.59 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5394, allocations: 1.344 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.5394, allocations: 1.344 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.5394, allocations: 0.9375 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.5395, allocations: 162.3 kB / 0.824 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.5395, allocations: 1.469 kB / 0.824 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-06/0.5395, allocations: 2.375 kB / 0.824 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.5395, allocations: 9.031 kB / 0.824 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.5395, allocations: 2.547 kB / 0.824 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5395, allocations: 0 / 0.824 GB, free: 12.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5395, allocations: 5.594 kB / 0.824 GB, free: 12.36 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.5396, allocations: 139.9 kB / 0.8242 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.829e-06/0.5397, allocations: 7.703 kB / 0.8242 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.5397, allocations: 6.188 kB / 0.8242 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.687e-05/0.5397, allocations: 6.391 kB / 0.8242 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.5397, allocations: 7.484 kB / 0.8242 GB, free: 12.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.5397, allocations: 8.344 kB / 0.8242 GB, free: 12.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.508e-05/0.5398, allocations: 95.55 kB / 0.8243 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5398, allocations: 4 kB / 0.8243 GB, free: 12.17 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001916/0.54, allocations: 51.2 kB / 0.8244 GB, free: 12.16 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0003552/0.5403, allocations: 0.6756 MB / 0.825 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003704/0.5407, allocations: 416.6 kB / 0.8254 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5407, allocations: 0 / 0.8254 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.471e-05/0.5407, allocations: 31.02 kB / 0.8254 GB, free: 11.19 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.5409, allocations: 30.7 kB / 0.8255 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.5429, allocations: 2.433 MB / 0.8279 GB, free: 9.16 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.533e-05/0.5429, allocations: 81.3 kB / 0.8279 GB, free: 9.082 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.915e-05/0.543, allocations: 12.98 kB / 0.8279 GB, free: 9.078 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.037e-05/0.543, allocations: 30.19 kB / 0.828 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of SimCode: time 1.072e-06/0.543, allocations: 0 / 0.828 GB, free: 9.055 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.5658, allocations: 4.679 MB / 0.8325 GB, free: 7.926 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.715/7.281, allocations: 1.781 kB / 0.8325 GB, free: 7.926 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Logical.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_Logical_Validation_Switch.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.368771009612828] Failed to read output from testmodel.py, exit status != 0: 7.36157891433686 7.371413679 6.833688281 Calling exit ...