Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.0008731/0.0008731, 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.001227/0.001227, 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.8918/0.8918, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.7102/0.7102, allocations: 154.6 MB / 413.8 MB, free: 0.8008 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.Discrete.Validation.TriggeredMax,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.237e-06/4.237e-06, allocations: 4 kB / 0.6181 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.467e-05/1.891e-05, allocations: 2.281 kB / 0.6181 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001208/0.001227, allocations: 0.7073 MB / 0.6188 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.002312, allocations: 1.213 MB / 0.6199 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.137e-05/0.002354, allocations: 0 / 0.6199 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 2.781e-05/0.002382, allocations: 3.938 kB / 0.6199 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 6.338e-05/0.002445, allocations: 23.84 kB / 0.62 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.00285, allocations: 145.4 kB / 0.6201 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.002986, allocations: 123.7 kB / 0.6202 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 8.726e-05/0.003073, allocations: 12 kB / 0.6202 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.003186, allocations: 71.81 kB / 0.6203 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.003261, allocations: 39.92 kB / 0.6203 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.003282, allocations: 8 kB / 0.6203 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 5.779e-05/0.003339, allocations: 27.98 kB / 0.6204 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 1.935e-05/0.003359, allocations: 7.938 kB / 0.6204 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 4.889e-05/0.003408, allocations: 43.95 kB / 0.6204 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.003568, allocations: 131.6 kB / 0.6206 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.00357, allocations: 0 / 0.6206 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.183e-06/0.003571, allocations: 0 / 0.6206 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.003575, allocations: 4 kB / 0.6206 GB, free: 10.06 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.0004553/0.004031, allocations: 335.8 kB / 0.6209 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.004077, allocations: 8.031 kB / 0.6209 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.218e-05/0.004109, allocations: 30.75 kB / 0.6209 GB, free: 9.645 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.009e-05/0.004189, allocations: 12.89 kB / 0.6209 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.871e-05/0.004268, allocations: 109.8 kB / 0.621 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.004282, allocations: 16.31 kB / 0.621 GB, free: 9.484 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.004299, allocations: 8.359 kB / 0.6211 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.004435, allocations: 66.22 kB / 0.6211 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.004442, allocations: 192 / 0.6211 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.00445, allocations: 4.312 kB / 0.6211 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.004456, allocations: 4.125 kB / 0.6211 GB, free: 9.398 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.783e-05/0.004554, allocations: 47.94 kB / 0.6212 GB, free: 9.352 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003588/0.004912, allocations: 275.9 kB / 0.6214 GB, free: 9.039 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 9.951e-05/0.005012, allocations: 50.48 kB / 0.6215 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.597e-05/0.005068, allocations: 28.88 kB / 0.6215 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.005084, allocations: 0 / 0.6215 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.005227, allocations: 83.36 kB / 0.6216 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.005228, allocations: 0 / 0.6216 GB, free: 8.855 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7): time 0.0002702/0.005498, allocations: 141.5 kB / 0.6217 GB, free: 8.711 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.005532, allocations: 63.39 kB / 0.6218 GB, free: 8.637 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.104e-05/0.005593, allocations: 113.8 kB / 0.6219 GB, free: 8.516 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.005609, allocations: 29.7 kB / 0.6219 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.398e-05/0.005653, allocations: 96.16 kB / 0.622 GB, free: 8.383 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.005668, allocations: 15.89 kB / 0.622 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.005716, allocations: 37.7 kB / 0.6221 GB, free: 8.324 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.809e-05/0.005794, allocations: 314.8 kB / 0.6224 GB, free: 8.008 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.005897, allocations: 81.66 kB / 0.6224 GB, free: 7.922 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.005999, allocations: 105.1 kB / 0.6225 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.006149, allocations: 133 kB / 0.6227 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.006152, allocations: 3.938 kB / 0.6227 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002553/0.006408, allocations: 236.9 kB / 0.6229 GB, free: 7.398 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.006434, allocations: 29.7 kB / 0.6229 GB, free: 7.363 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.00644, allocations: 4 kB / 0.6229 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.006452, allocations: 4 kB / 0.6229 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.006512, allocations: 11.98 kB / 0.6229 GB, free: 7.344 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.006518, allocations: 4 kB / 0.6229 GB, free: 7.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.894e-05/0.006617, allocations: 39.89 kB / 0.623 GB, free: 7.301 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.00663, allocations: 4 kB / 0.623 GB, free: 7.297 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: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.687e-05/0.006707, allocations: 134.7 kB / 0.6231 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.006715, allocations: 3.953 kB / 0.6231 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001787/0.006894, allocations: 114.4 kB / 0.6232 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.006896, allocations: 3.938 kB / 0.6232 GB, free: 7.027 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.0069, allocations: 0 / 0.6232 GB, free: 7.027 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.006905, allocations: 3.984 kB / 0.6232 GB, free: 7.023 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.007167, allocations: 329.6 kB / 0.6236 GB, free: 6.652 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.007169, allocations: 8 kB / 0.6236 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.04e-05/0.0072, allocations: 7.984 kB / 0.6236 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.007202, allocations: 0 / 0.6236 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.00721, allocations: 4 kB / 0.6236 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.007211, allocations: 0 / 0.6236 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.007212, allocations: 0 / 0.6236 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001642/0.007376, allocations: 207.4 kB / 0.6238 GB, free: 6.414 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.276e-06/0.007384, allocations: 11.94 kB / 0.6238 GB, free: 6.402 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.007398, allocations: 4 kB / 0.6238 GB, free: 6.398 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.155e-05/0.007439, allocations: 8.469 kB / 0.6238 GB, free: 6.391 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.007472, allocations: 7.922 kB / 0.6238 GB, free: 6.383 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.007477, allocations: 4 kB / 0.6238 GB, free: 6.379 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.623e-05/0.007513, allocations: 95.2 kB / 0.6239 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.007513, allocations: 0 / 0.6239 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001764/0.00769, allocations: 24 kB / 0.6239 GB, free: 6.262 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0003777/0.008068, allocations: 0.7357 MB / 0.6246 GB, free: 5.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000235/0.008303, allocations: 189.2 kB / 0.6248 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.008304, allocations: 0 / 0.6248 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.997e-05/0.008364, allocations: 39.91 kB / 0.6249 GB, free: 5.258 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.008551, allocations: 10.42 kB / 0.6249 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.009843, allocations: 1.771 MB / 0.6266 GB, free: 3.344 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.101e-05/0.009894, allocations: 72.45 kB / 0.6267 GB, free: 3.254 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.005e-05/0.009924, allocations: 4 kB / 0.6267 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.009961, allocations: 24.48 kB / 0.6267 GB, free: 3.223 MB / 0.5417 GB Notification: Performance of SimCode: time 8.11e-07/0.009962, allocations: 4 kB / 0.6267 GB, free: 3.219 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.02539, allocations: 3.21 MB / 0.6298 GB, free: 200 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.996/7.021, allocations: 8.062 kB / 0.6298 GB, free: 192 kB / 0.5417 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.734114725142717] Failed to read output from testmodel.py, exit status != 0: 7.1008095517754555 7.112121147 7.106800905 Calling exit ...