Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0007821/0.0007821, 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.0008363/0.0008363, 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.9552/0.9552, 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.7263/0.7263, allocations: 154.6 MB / 413.7 MB, free: 0.8125 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.Logical.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.618 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.668e-05, allocations: 5.234 kB / 0.618 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001301/0.001317, allocations: 0.683 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.002559, allocations: 1.287 MB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.091e-05/0.00261, allocations: 0 / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.973e-05/0.00264, allocations: 3.938 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.215e-05/0.002712, allocations: 23.78 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006179/0.00333, allocations: 312.7 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.003576, allocations: 263.5 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.997e-05/0.003676, allocations: 8.188 kB / 0.6206 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.003812, allocations: 143.8 kB / 0.6207 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.003938, allocations: 71.88 kB / 0.6208 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.003971, allocations: 20 kB / 0.6208 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.147e-05/0.004042, allocations: 39.97 kB / 0.6208 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/0.004067, allocations: 11.94 kB / 0.6208 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 7.666e-05/0.004143, allocations: 83.8 kB / 0.6209 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002449/0.004388, allocations: 263.3 kB / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004391, allocations: 4 kB / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.042e-06/0.004392, allocations: 0 / 0.6212 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.004396, allocations: 0 / 0.6212 GB, free: 10.5 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.0004196/0.004816, allocations: 415.2 kB / 0.6216 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.004852, allocations: 17.45 kB / 0.6216 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.61e-05/0.004878, allocations: 34.75 kB / 0.6216 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.004925, allocations: 16.89 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.348e-05/0.004998, allocations: 117.7 kB / 0.6217 GB, free: 9.828 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.005018, allocations: 12.36 kB / 0.6217 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.005043, allocations: 16.38 kB / 0.6218 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.912e-05/0.005142, allocations: 58.17 kB / 0.6218 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.00515, allocations: 8.188 kB / 0.6218 GB, free: 9.73 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.005158, allocations: 384 / 0.6218 GB, free: 9.73 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.005165, allocations: 3.938 kB / 0.6218 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.85e-05/0.005203, allocations: 19.98 kB / 0.6219 GB, free: 9.707 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004007/0.005604, allocations: 339.8 kB / 0.6222 GB, free: 9.332 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 5.448e-05/0.005658, allocations: 34.45 kB / 0.6222 GB, free: 9.289 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.686e-05/0.005685, allocations: 20.94 kB / 0.6222 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.005693, allocations: 0 / 0.6222 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001338/0.005827, allocations: 99.28 kB / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.002e-06/0.005828, allocations: 0 / 0.6223 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0002392/0.006067, allocations: 145.5 kB / 0.6225 GB, free: 9.008 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.006103, allocations: 55.48 kB / 0.6225 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.567e-05/0.006189, allocations: 136.6 kB / 0.6226 GB, free: 8.801 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.006216, allocations: 33.7 kB / 0.6227 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.006285, allocations: 112 kB / 0.6228 GB, free: 8.648 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.006301, allocations: 15.91 kB / 0.6228 GB, free: 8.633 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.966e-05/0.006381, allocations: 65.67 kB / 0.6229 GB, free: 8.562 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.006473, allocations: 322.8 kB / 0.6232 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.006651, allocations: 189 kB / 0.6233 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.006833, allocations: 225.1 kB / 0.6236 GB, free: 7.777 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.007026, allocations: 234.4 kB / 0.6238 GB, free: 7.512 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.007031, allocations: 3.938 kB / 0.6238 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004613/0.007492, allocations: 483.5 kB / 0.6243 GB, free: 6.992 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.592e-05/0.007548, allocations: 105.3 kB / 0.6244 GB, free: 6.871 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.007554, allocations: 0 / 0.6244 GB, free: 6.871 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.00757, allocations: 4 kB / 0.6244 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-05/0.007591, allocations: 0 / 0.6244 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.007599, allocations: 7.938 kB / 0.6244 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.007864, allocations: 79.83 kB / 0.6244 GB, free: 6.781 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.007893, allocations: 23.98 kB / 0.6245 GB, free: 6.758 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 8.85e-05/0.007982, allocations: 130 kB / 0.6246 GB, free: 6.625 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.007993, allocations: 7.953 kB / 0.6246 GB, free: 6.617 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.008021, allocations: 12.44 kB / 0.6246 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.008023, allocations: 0 / 0.6246 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.008029, allocations: 0 / 0.6246 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.008035, allocations: 3.984 kB / 0.6246 GB, free: 6.598 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.008141, allocations: 160.6 kB / 0.6248 GB, free: 6.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.008143, allocations: 4 kB / 0.6248 GB, free: 6.395 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.238e-06/0.008147, allocations: 4 kB / 0.6248 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.008149, allocations: 384 / 0.6248 GB, free: 6.391 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.008158, allocations: 11.94 kB / 0.6248 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.008159, allocations: 0 / 0.6248 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.00816, allocations: 0 / 0.6248 GB, free: 6.379 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.008452, allocations: 144.9 kB / 0.6249 GB, free: 6.219 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.917e-06/0.008461, allocations: 7.953 kB / 0.6249 GB, free: 6.211 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.008475, allocations: 11.98 kB / 0.6249 GB, free: 6.199 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.437e-05/0.008489, allocations: 3.984 kB / 0.6249 GB, free: 6.195 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.752e-05/0.008517, allocations: 7.984 kB / 0.625 GB, free: 6.188 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.008523, allocations: 8 kB / 0.625 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.738e-05/0.00856, allocations: 99.2 kB / 0.6251 GB, free: 6.082 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.00856, allocations: 4 kB / 0.6251 GB, free: 6.078 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001793/0.00874, allocations: 40 kB / 0.6251 GB, free: 6.039 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.0003361/0.009076, allocations: 0.6748 MB / 0.6258 GB, free: 5.336 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003434/0.009419, allocations: 427 kB / 0.6262 GB, free: 4.863 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.009421, allocations: 0 / 0.6262 GB, free: 4.863 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 3.766e-05/0.009458, allocations: 27.98 kB / 0.6262 GB, free: 4.836 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.009644, allocations: 36.44 kB / 0.6262 GB, free: 4.805 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.01159, allocations: 2.419 MB / 0.6286 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.925e-05/0.01166, allocations: 75.89 kB / 0.6287 GB, free: 2.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.863e-05/0.0117, allocations: 16.48 kB / 0.6287 GB, free: 2.051 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.496e-05/0.01174, allocations: 24.5 kB / 0.6287 GB, free: 2.027 MB / 0.5886 GB Notification: Performance of SimCode: time 1.002e-06/0.01174, allocations: 3.938 kB / 0.6287 GB, free: 2.023 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.02969, allocations: 4.8 MB / 0.6334 GB, free: 13.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.847/6.877, allocations: 1.422 kB / 0.6334 GB, free: 13.43 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Validation_Switch.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.622287814505398] Failed to read output from testmodel.py, exit status != 0: 6.957647488452494 6.966931314 6.960862936 Calling exit ...