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.001053/0.001053, 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.0009388/0.0009388, 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.8766/0.8766, allocations: 177.2 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.6878/0.6878, 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 3.998e-06/3.998e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/3.091e-05, allocations: 4.953 kB / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001564/0.001595, allocations: 0.7022 MB / 0.6188 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.002751, allocations: 1.225 MB / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.753e-05/0.002798, allocations: 0 / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.883e-05/0.002827, allocations: 3.938 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.936e-05/0.002896, allocations: 19.91 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.003344, allocations: 150.1 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.000178/0.003522, allocations: 119.7 kB / 0.6202 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.173e-05/0.003614, allocations: 8 kB / 0.6203 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.003715, allocations: 67.88 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.456e-05/0.003789, allocations: 35.94 kB / 0.6204 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.003811, allocations: 19.92 kB / 0.6204 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.74e-05/0.003869, allocations: 16 kB / 0.6204 GB, free: 11.31 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.074e-05/0.00389, allocations: 15.92 kB / 0.6204 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.581e-05/0.003935, allocations: 39.95 kB / 0.6204 GB, free: 11.26 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.00409, allocations: 131.7 kB / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.004092, allocations: 0 / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.613e-06/0.004094, allocations: 0 / 0.6206 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.0041, allocations: 3.984 kB / 0.6206 GB, free: 11.12 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.0004686/0.004568, allocations: 327.8 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.004611, allocations: 8.031 kB / 0.6209 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.783e-05/0.004639, allocations: 42.67 kB / 0.6209 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.671e-05/0.004715, allocations: 12.89 kB / 0.6209 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.123e-05/0.004797, allocations: 113.7 kB / 0.6211 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.00481, allocations: 8.375 kB / 0.6211 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.004826, allocations: 8.375 kB / 0.6211 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.004968, allocations: 62.22 kB / 0.6211 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.004975, allocations: 192 / 0.6211 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.004985, allocations: 4.359 kB / 0.6211 GB, free: 10.47 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.004991, allocations: 8.125 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.693e-05/0.005088, allocations: 39.91 kB / 0.6212 GB, free: 10.43 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003937/0.005482, allocations: 271.9 kB / 0.6214 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.005587, allocations: 46.55 kB / 0.6215 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.166e-05/0.005639, allocations: 32.88 kB / 0.6215 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.005659, allocations: 4 kB / 0.6215 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/0.005825, allocations: 95.31 kB / 0.6216 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.005826, allocations: 0 / 0.6216 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002824/0.006108, allocations: 133.6 kB / 0.6217 GB, free: 9.781 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.00614, allocations: 55.39 kB / 0.6218 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.087e-05/0.006211, allocations: 118 kB / 0.6219 GB, free: 9.59 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.00623, allocations: 33.7 kB / 0.6219 GB, free: 9.551 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.084e-05/0.00627, allocations: 88.14 kB / 0.622 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.006285, allocations: 15.98 kB / 0.622 GB, free: 9.445 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/0.006332, allocations: 45.56 kB / 0.6221 GB, free: 9.395 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.049e-05/0.006402, allocations: 318.8 kB / 0.6224 GB, free: 9.074 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.744e-05/0.006499, allocations: 77.66 kB / 0.6225 GB, free: 8.992 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.695e-05/0.006596, allocations: 109.1 kB / 0.6226 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.006734, allocations: 129 kB / 0.6227 GB, free: 8.723 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.006737, allocations: 3.938 kB / 0.6227 GB, free: 8.719 MB / 0.5886 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000239/0.006976, allocations: 229 kB / 0.6229 GB, free: 8.477 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.007005, allocations: 41.77 kB / 0.6229 GB, free: 8.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.007011, allocations: 3.984 kB / 0.6229 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.007022, allocations: 4 kB / 0.623 GB, free: 8.422 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.248e-05/0.007085, allocations: 15.92 kB / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.007091, allocations: 0 / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.007193, allocations: 43.84 kB / 0.623 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.007207, allocations: 8 kB / 0.623 GB, free: 8.355 MB / 0.5886 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 6.594e-05/0.007272, allocations: 126.8 kB / 0.6231 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.965e-06/0.00728, allocations: 4 kB / 0.6231 GB, free: 8.219 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.007447, allocations: 110.1 kB / 0.6232 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.00745, allocations: 4 kB / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.007455, allocations: 0 / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.007459, allocations: 3.938 kB / 0.6233 GB, free: 8.094 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.007693, allocations: 325.6 kB / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.007694, allocations: 0 / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.73e-05/0.007721, allocations: 15.98 kB / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.007723, allocations: 0 / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.00773, allocations: 0 / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.007731, allocations: 0 / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.007732, allocations: 0 / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001521/0.007884, allocations: 211.8 kB / 0.6238 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-06/0.007892, allocations: 15.89 kB / 0.6238 GB, free: 7.473 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.007905, allocations: 3.984 kB / 0.6238 GB, free: 7.469 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.972e-05/0.007945, allocations: 8 kB / 0.6238 GB, free: 7.461 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.125e-05/0.007976, allocations: 7.984 kB / 0.6238 GB, free: 7.453 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.007982, allocations: 4 kB / 0.6238 GB, free: 7.449 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.052e-05/0.008012, allocations: 91.3 kB / 0.6239 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008012, allocations: 0 / 0.6239 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001757/0.008188, allocations: 27.94 kB / 0.6239 GB, free: 7.332 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: 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.0003563/0.008544, allocations: 0.7435 MB / 0.6247 GB, free: 6.562 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.008775, allocations: 189 kB / 0.6248 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.008777, allocations: 0 / 0.6248 GB, free: 6.359 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.543e-05/0.008832, allocations: 31.97 kB / 0.6249 GB, free: 6.328 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.009018, allocations: 13.88 kB / 0.6249 GB, free: 6.316 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.01027, allocations: 1.758 MB / 0.6266 GB, free: 4.426 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.519e-05/0.01031, allocations: 71.33 kB / 0.6267 GB, free: 4.336 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.434e-05/0.01034, allocations: 4 kB / 0.6267 GB, free: 4.332 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.01038, allocations: 24.48 kB / 0.6267 GB, free: 4.309 MB / 0.5886 GB Notification: Performance of SimCode: time 7.11e-07/0.01038, allocations: 0 / 0.6267 GB, free: 4.309 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.0291, allocations: 3.218 MB / 0.6298 GB, free: 1.277 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.679/6.708, allocations: 10.02 kB / 0.6298 GB, free: 1.27 MB / 0.5886 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.317875257693231] Failed to read output from testmodel.py, exit status != 0: 6.789807642810047 6.798779294 6.792599095 Calling exit ...