Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0007872/0.0007872, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.000873/0.000873, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9501/0.9501, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.7113/0.7113, allocations: 154.5 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.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.618 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.106e-05/1.247e-05, allocations: 5.375 kB / 0.618 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.0011/0.001113, allocations: 0.6462 MB / 0.6187 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0009589/0.002072, allocations: 1.081 MB / 0.6197 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.895e-05/0.002111, allocations: 0 / 0.6197 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 2.809e-05/0.002139, allocations: 7.922 kB / 0.6197 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 5.718e-05/0.002196, allocations: 7.984 kB / 0.6197 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.002448, allocations: 43.72 kB / 0.6198 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 8.189e-05/0.00253, allocations: 51.84 kB / 0.6198 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.002611, allocations: 7.984 kB / 0.6198 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 6.414e-05/0.002675, allocations: 19.98 kB / 0.6198 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.427e-05/0.002719, allocations: 31.89 kB / 0.6199 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.002734, allocations: 4 kB / 0.6199 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 6.036e-05/0.002795, allocations: 19.98 kB / 0.6199 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.002813, allocations: 4 kB / 0.6199 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 2.492e-05/0.002838, allocations: 15.98 kB / 0.6199 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.002959, allocations: 67.77 kB / 0.62 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.00296, allocations: 0 / 0.62 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.132e-06/0.002962, allocations: 0 / 0.62 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.002966, allocations: 0 / 0.62 GB, free: 10.62 MB / 0.5417 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.0004033/0.003369, allocations: 302.1 kB / 0.6203 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.003406, allocations: 9.469 kB / 0.6203 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.633e-05/0.003433, allocations: 34.75 kB / 0.6203 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.003489, allocations: 4.938 kB / 0.6203 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.563e-05/0.003575, allocations: 113.7 kB / 0.6204 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.003587, allocations: 384 / 0.6204 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.0036, allocations: 8.375 kB / 0.6204 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.003773, allocations: 54.23 kB / 0.6205 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.003784, allocations: 4.172 kB / 0.6205 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.003796, allocations: 20.3 kB / 0.6205 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.003802, allocations: 4.125 kB / 0.6205 GB, free: 10 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.003942, allocations: 39.91 kB / 0.6205 GB, free: 9.965 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003966/0.004339, allocations: 235.9 kB / 0.6208 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.004466, allocations: 50.55 kB / 0.6208 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.896e-05/0.004535, allocations: 28.95 kB / 0.6208 GB, free: 9.602 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.004558, allocations: 11.94 kB / 0.6209 GB, free: 9.59 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.004718, allocations: 75.39 kB / 0.6209 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.00472, allocations: 0 / 0.6209 GB, free: 9.504 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6): time 0.0003248/0.005044, allocations: 121.6 kB / 0.621 GB, free: 9.379 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.005086, allocations: 55.39 kB / 0.6211 GB, free: 9.312 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.004e-05/0.005156, allocations: 109.8 kB / 0.6212 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.005172, allocations: 29.7 kB / 0.6212 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.00521, allocations: 88.14 kB / 0.6213 GB, free: 9.07 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.00523, allocations: 19.84 kB / 0.6213 GB, free: 9.051 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.201e-05/0.005272, allocations: 25.7 kB / 0.6214 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.045e-05/0.005362, allocations: 310.8 kB / 0.6217 GB, free: 8.707 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.772e-05/0.00543, allocations: 24.47 kB / 0.6217 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.067e-05/0.00551, allocations: 55.36 kB / 0.6217 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.005661, allocations: 79.39 kB / 0.6218 GB, free: 8.527 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.005663, allocations: 0 / 0.6218 GB, free: 8.527 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001973/0.00586, allocations: 113.4 kB / 0.6219 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.005873, allocations: 8 kB / 0.6219 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.005878, allocations: 0 / 0.6219 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.005891, allocations: 0 / 0.6219 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.597e-05/0.005967, allocations: 16.08 kB / 0.6219 GB, free: 8.387 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.005971, allocations: 4 kB / 0.6219 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.085e-05/0.006022, allocations: 15.92 kB / 0.622 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.006032, allocations: 4 kB / 0.622 GB, free: 8.363 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 7.128e-05/0.006103, allocations: 118.8 kB / 0.6221 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.006116, allocations: 11.89 kB / 0.6221 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.006315, allocations: 98.08 kB / 0.6222 GB, free: 8.121 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.006319, allocations: 4 kB / 0.6222 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.006322, allocations: 0 / 0.6222 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.006326, allocations: 4 kB / 0.6222 GB, free: 8.113 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.006658, allocations: 317.5 kB / 0.6225 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.00666, allocations: 7.938 kB / 0.6225 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-05/0.006698, allocations: 7.984 kB / 0.6225 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.006701, allocations: 0 / 0.6225 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.006708, allocations: 0 / 0.6225 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.00671, allocations: 4.156 kB / 0.6225 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.00671, allocations: 0 / 0.6225 GB, free: 7.734 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.006912, allocations: 203.3 kB / 0.6227 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.006919, allocations: 4.047 kB / 0.6227 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.006932, allocations: 3.984 kB / 0.6227 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.029e-05/0.007002, allocations: 8.172 kB / 0.6227 GB, free: 7.504 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.007037, allocations: 7.984 kB / 0.6227 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.007051, allocations: 8 kB / 0.6227 GB, free: 7.488 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.373e-05/0.007085, allocations: 83.28 kB / 0.6228 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.1e-08/0.007085, allocations: 0 / 0.6228 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002461/0.007331, allocations: 12 kB / 0.6228 GB, free: 7.395 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000451/0.007782, allocations: 0.7357 MB / 0.6235 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001811/0.007963, allocations: 59.89 kB / 0.6236 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.007964, allocations: 0 / 0.6236 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.518e-05/0.00804, allocations: 36.11 kB / 0.6236 GB, free: 6.539 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.008287, allocations: 27.72 kB / 0.6237 GB, free: 6.516 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.009519, allocations: 1.368 MB / 0.625 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.066e-05/0.009569, allocations: 67.34 kB / 0.6251 GB, free: 4.961 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.751e-05/0.009597, allocations: 4 kB / 0.6251 GB, free: 4.957 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.028e-05/0.009637, allocations: 20.48 kB / 0.6251 GB, free: 4.934 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/0.009638, allocations: 0 / 0.6251 GB, free: 4.934 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01578/0.02541, allocations: 2.439 MB / 0.6275 GB, free: 2.637 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.832, allocations: 6.266 kB / 0.6275 GB, free: 2.633 MB / 0.5417 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.52653859835118] Failed to read output from testmodel.py, exit status != 0: 6.910530305467546 6.919005666 6.914392613 Calling exit ...