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.0008101/0.0008101, 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.0007938/0.0007938, 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.8753/0.8753, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.718/0.718, allocations: 154.6 MB / 413.8 MB, free: 0.7969 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.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: Performance of FrontEnd - loaded program: time 3.025e-06/3.025e-06, allocations: 3.938 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.449e-05, allocations: 7.875 kB / 0.6181 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001404/0.001429, allocations: 0.6684 MB / 0.6188 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.002788, allocations: 1.287 MB / 0.62 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.977e-05/0.002838, allocations: 4 kB / 0.62 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.037e-05/0.002869, allocations: 7.875 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.116e-05/0.00295, allocations: 23.78 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.003596, allocations: 312.5 kB / 0.6204 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002242/0.00382, allocations: 263.5 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.545e-05/0.003915, allocations: 8.188 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.004047, allocations: 143.8 kB / 0.6208 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.004168, allocations: 79.84 kB / 0.6208 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.00421, allocations: 24 kB / 0.6209 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.024e-05/0.00429, allocations: 35.92 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.004315, allocations: 8 kB / 0.6209 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 8.914e-05/0.004404, allocations: 79.86 kB / 0.621 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.004627, allocations: 259.4 kB / 0.6212 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.004629, allocations: 4 kB / 0.6212 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.232e-06/0.00463, allocations: 4 kB / 0.6212 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.407e-06/0.004633, allocations: 0 / 0.6212 GB, free: 10.45 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.0004219/0.005055, allocations: 433.3 kB / 0.6216 GB, free: 9.98 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.005092, allocations: 8.031 kB / 0.6216 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.659e-05/0.005119, allocations: 38.73 kB / 0.6217 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.00517, allocations: 16.89 kB / 0.6217 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.398e-05/0.005244, allocations: 113.7 kB / 0.6218 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.005265, allocations: 12.38 kB / 0.6218 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.005289, allocations: 16.31 kB / 0.6218 GB, free: 9.746 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.925e-05/0.005388, allocations: 62.22 kB / 0.6219 GB, free: 9.68 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.005395, allocations: 4.188 kB / 0.6219 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.005404, allocations: 384 / 0.6219 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.005409, allocations: 3.938 kB / 0.6219 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.734e-05/0.005446, allocations: 16 kB / 0.6219 GB, free: 9.656 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003963/0.005842, allocations: 339.8 kB / 0.6222 GB, free: 9.281 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 5.549e-05/0.005898, allocations: 34.45 kB / 0.6223 GB, free: 9.238 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.787e-05/0.005926, allocations: 20.94 kB / 0.6223 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 7.904e-06/0.005934, allocations: 0 / 0.6223 GB, free: 9.215 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.006081, allocations: 107.3 kB / 0.6224 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 7.72e-07/0.006082, allocations: 0 / 0.6224 GB, free: 9.098 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0002474/0.006329, allocations: 149.5 kB / 0.6225 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.006364, allocations: 51.41 kB / 0.6226 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.006442, allocations: 140.2 kB / 0.6227 GB, free: 8.738 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.006471, allocations: 37.7 kB / 0.6228 GB, free: 8.695 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.006522, allocations: 100 kB / 0.6229 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.006537, allocations: 19.89 kB / 0.6229 GB, free: 8.574 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.688e-05/0.006614, allocations: 69.67 kB / 0.6229 GB, free: 8.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.875e-05/0.006693, allocations: 318.8 kB / 0.6232 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.00686, allocations: 181 kB / 0.6234 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.007034, allocations: 223 kB / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.007237, allocations: 247 kB / 0.6239 GB, free: 7.445 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.00724, allocations: 3.938 kB / 0.6239 GB, free: 7.441 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004185/0.007659, allocations: 459.6 kB / 0.6243 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.00771, allocations: 105.3 kB / 0.6244 GB, free: 6.828 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.007715, allocations: 4 kB / 0.6244 GB, free: 6.824 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.007728, allocations: 4 kB / 0.6244 GB, free: 6.82 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.744e-05/0.007745, allocations: 7.938 kB / 0.6244 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.00775, allocations: 0 / 0.6244 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.00801, allocations: 79.8 kB / 0.6245 GB, free: 6.734 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.008038, allocations: 27.98 kB / 0.6245 GB, free: 6.707 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: 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 9.111e-05/0.008129, allocations: 134.8 kB / 0.6247 GB, free: 6.566 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-06/0.008139, allocations: 7.953 kB / 0.6247 GB, free: 6.559 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.205e-05/0.008161, allocations: 4.438 kB / 0.6247 GB, free: 6.551 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.008163, allocations: 0 / 0.6247 GB, free: 6.551 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.008168, allocations: 4 kB / 0.6247 GB, free: 6.547 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.008172, allocations: 3.984 kB / 0.6247 GB, free: 6.543 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.966e-05/0.008272, allocations: 164.6 kB / 0.6248 GB, free: 6.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.008273, allocations: 0 / 0.6248 GB, free: 6.34 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.008279, allocations: 7.922 kB / 0.6248 GB, free: 6.332 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.008281, allocations: 8 kB / 0.6248 GB, free: 6.324 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.008289, allocations: 4 kB / 0.6248 GB, free: 6.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.00829, allocations: 0 / 0.6248 GB, free: 6.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.008291, allocations: 0 / 0.6248 GB, free: 6.32 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.008419, allocations: 149.2 kB / 0.625 GB, free: 6.156 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.775e-06/0.008427, allocations: 3.953 kB / 0.625 GB, free: 6.152 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.008439, allocations: 8 kB / 0.625 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.345e-05/0.008452, allocations: 0 / 0.625 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.314e-05/0.008485, allocations: 11.98 kB / 0.625 GB, free: 6.133 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.008493, allocations: 7.984 kB / 0.625 GB, free: 6.125 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.042e-05/0.008533, allocations: 95.27 kB / 0.6251 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.008533, allocations: 7.938 kB / 0.6251 GB, free: 6.023 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.00018/0.008713, allocations: 47.94 kB / 0.6252 GB, free: 5.977 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: 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.0003272/0.00904, allocations: 0.6741 MB / 0.6258 GB, free: 5.277 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.009382, allocations: 419.1 kB / 0.6262 GB, free: 4.812 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.009383, allocations: 0 / 0.6262 GB, free: 4.812 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 4.039e-05/0.009423, allocations: 35.92 kB / 0.6263 GB, free: 4.777 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.009608, allocations: 24.36 kB / 0.6263 GB, free: 4.754 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.01141, allocations: 2.431 MB / 0.6287 GB, free: 2.105 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.741e-05/0.01145, allocations: 75.89 kB / 0.6287 GB, free: 2.008 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.866e-05/0.01148, allocations: 12.5 kB / 0.6287 GB, free: 1.992 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.01152, allocations: 28.48 kB / 0.6288 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of SimCode: time 5.91e-07/0.01152, allocations: 0 / 0.6288 GB, free: 1.965 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.02785, allocations: 4.786 MB / 0.6334 GB, free: 13.4 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.063/7.091, allocations: 8.75 kB / 0.6334 GB, free: 13.4 MB / 0.6042 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: 9.850208261050284] Failed to read output from testmodel.py, exit status != 0: 7.17185777798295 7.184898927 7.177547787 Calling exit ...