Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0007967/0.0007967, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0008645/0.0008645, allocations: 162 kB / 22.43 MB, free: 2.141 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.8941/0.8941, allocations: 177.2 MB / 202.8 MB, free: 5.781 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.6946/0.6946, allocations: 155 MB / 414.2 MB, free: 464 kB / 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.TriggeredMax,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 73.33 kB / 0.6186 GB, free: 13.25 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4536/0.455, allocations: 102 MB / 0.7182 GB, free: 23.15 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001417/0.4564, allocations: 0.7049 MB / 0.7189 GB, free: 22.71 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.4574, allocations: 1.219 MB / 0.7201 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.097e-05/0.4575, allocations: 1.156 kB / 0.7201 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.4575, allocations: 4.547 kB / 0.7201 GB, free: 21.84 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 6.525e-05/0.4576, allocations: 11.39 kB / 0.7201 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.458, allocations: 147.2 kB / 0.7203 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.4582, allocations: 124.5 kB / 0.7204 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 9.716e-05/0.4583, allocations: 11.2 kB / 0.7204 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.4584, allocations: 68.7 kB / 0.7205 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 9.606e-05/0.4585, allocations: 36.89 kB / 0.7205 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.4585, allocations: 10.16 kB / 0.7205 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 6.282e-05/0.4586, allocations: 25.91 kB / 0.7205 GB, free: 21.65 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 3.384e-05/0.4586, allocations: 16.92 kB / 0.7205 GB, free: 21.64 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 5.869e-05/0.4586, allocations: 38.97 kB / 0.7206 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.4588, allocations: 146.1 kB / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4588, allocations: 0 / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4588, allocations: 4 kB / 0.7207 GB, free: 21.55 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.4588, allocations: 0.6562 kB / 0.7207 GB, free: 21.55 MB / 0.6355 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.0004331/0.4593, allocations: 336 kB / 0.721 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.4593, allocations: 10.66 kB / 0.7211 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.975e-05/0.4593, allocations: 33.12 kB / 0.7211 GB, free: 21.19 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.139e-05/0.4594, allocations: 12.84 kB / 0.7211 GB, free: 21.19 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.794e-05/0.4595, allocations: 115.5 kB / 0.7212 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.4595, allocations: 7.75 kB / 0.7212 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.4595, allocations: 6.578 kB / 0.7212 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.4597, allocations: 73.11 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.4597, allocations: 7.875 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.4597, allocations: 1.062 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.4597, allocations: 1 kB / 0.7213 GB, free: 21 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.4598, allocations: 46.97 kB / 0.7213 GB, free: 20.98 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.4602, allocations: 269.1 kB / 0.7216 GB, free: 20.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.4603, allocations: 44.56 kB / 0.7216 GB, free: 20.7 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.693e-05/0.4603, allocations: 39.77 kB / 0.7217 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.4603, allocations: 1.188 kB / 0.7217 GB, free: 20.68 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.4605, allocations: 87.89 kB / 0.7218 GB, free: 20.62 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.4605, allocations: 0 / 0.7218 GB, free: 20.62 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000304/0.4608, allocations: 139.3 kB / 0.7219 GB, free: 20.56 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.4609, allocations: 57.17 kB / 0.722 GB, free: 20.5 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.947e-05/0.4609, allocations: 119.4 kB / 0.7221 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.461, allocations: 32.11 kB / 0.7221 GB, free: 20.35 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.461, allocations: 89.08 kB / 0.7222 GB, free: 20.27 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.461, allocations: 19.62 kB / 0.7222 GB, free: 20.25 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.4611, allocations: 36.92 kB / 0.7222 GB, free: 20.23 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.393e-05/0.4611, allocations: 323.2 kB / 0.7225 GB, free: 19.91 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.4612, allocations: 80.48 kB / 0.7226 GB, free: 19.86 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.4613, allocations: 105.2 kB / 0.7227 GB, free: 19.78 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.4615, allocations: 138.5 kB / 0.7229 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4615, allocations: 2.297 kB / 0.7229 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000263/0.4617, allocations: 227.4 kB / 0.7231 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.4618, allocations: 38.88 kB / 0.7231 GB, free: 19.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4618, allocations: 1.125 kB / 0.7231 GB, free: 19.51 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.4618, allocations: 5.062 kB / 0.7231 GB, free: 19.51 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.771e-05/0.4619, allocations: 16.12 kB / 0.7231 GB, free: 19.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4619, allocations: 2.125 kB / 0.7231 GB, free: 19.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.462, allocations: 34.16 kB / 0.7232 GB, free: 19.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.462, allocations: 8.625 kB / 0.7232 GB, free: 19.5 MB / 0.6355 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 5.975e-05/0.4621, allocations: 120.5 kB / 0.7233 GB, free: 19.38 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.756e-06/0.4621, allocations: 8.312 kB / 0.7233 GB, free: 19.38 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.4623, allocations: 121 kB / 0.7234 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4623, allocations: 2.312 kB / 0.7234 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4623, allocations: 0 / 0.7234 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4623, allocations: 1.219 kB / 0.7234 GB, free: 19.31 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.4625, allocations: 324.3 kB / 0.7237 GB, free: 19.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4625, allocations: 0 / 0.7237 GB, free: 19.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-05/0.4626, allocations: 17.8 kB / 0.7237 GB, free: 19.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.4626, allocations: 6.594 kB / 0.7237 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.4626, allocations: 0 / 0.7237 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.4626, allocations: 1.734 kB / 0.7237 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4626, allocations: 3.938 kB / 0.7238 GB, free: 19.01 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001673/0.4628, allocations: 204 kB / 0.7239 GB, free: 18.86 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.708e-06/0.4628, allocations: 11.89 kB / 0.724 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.4628, allocations: 1.75 kB / 0.724 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.514e-05/0.4628, allocations: 5.938 kB / 0.724 GB, free: 18.85 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.689e-05/0.4629, allocations: 9.875 kB / 0.724 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.4629, allocations: 7.688 kB / 0.724 GB, free: 18.84 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 2.812e-05/0.4629, allocations: 88.48 kB / 0.7241 GB, free: 18.76 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4629, allocations: 1.125 kB / 0.7241 GB, free: 18.76 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001817/0.4631, allocations: 27.06 kB / 0.7241 GB, free: 18.75 MB / 0.6355 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.0003407/0.4634, allocations: 0.7372 MB / 0.7248 GB, free: 18.07 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002882/0.4637, allocations: 195.2 kB / 0.725 GB, free: 17.94 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4637, allocations: 0 / 0.725 GB, free: 17.94 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.548e-05/0.4638, allocations: 32.5 kB / 0.725 GB, free: 17.94 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.464, allocations: 19.7 kB / 0.725 GB, free: 17.93 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.4654, allocations: 1.759 MB / 0.7268 GB, free: 16.4 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.185e-05/0.4654, allocations: 70.33 kB / 0.7268 GB, free: 16.33 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.4655, allocations: 4.875 kB / 0.7268 GB, free: 16.33 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/0.4655, allocations: 21.45 kB / 0.7269 GB, free: 16.32 MB / 0.6355 GB Notification: Performance of SimCode: time 8.81e-07/0.4655, allocations: 0 / 0.7269 GB, free: 16.32 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02056/0.4861, allocations: 3.217 MB / 0.73 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.535/7.022, allocations: 12.02 kB / 0.73 GB, free: 15.32 MB / 0.6355 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.70782756106928] Failed to read output from testmodel.py, exit status != 0: 7.099304280010983 7.107911563 6.647034477 Calling exit ...