Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.798/1.798, allocations: 289.9 MB / 297.4 MB, free: 6.379 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001391/0.001391, allocations: 176.9 kB / 366.7 MB, free: 1.652 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.2 MB / 0.626 GB, free: 7.145 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 84.66 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.192e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6845/0.6846, allocations: 116.3 MB / 0.9733 GB, free: 76.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.8863, allocations: 138.7 MB / 1.109 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.8866, allocations: 76.53 kB / 1.109 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.007864/0.8944, allocations: 2.569 MB / 1.111 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8945, allocations: 4.531 kB / 1.111 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.8945, allocations: 0.5312 kB / 1.111 GB, free: 8.848 MB / 0.7136 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.00058/0.8951, allocations: 398.7 kB / 1.112 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.8952, allocations: 8.031 kB / 1.112 GB, free: 8.402 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.8952, allocations: 8 kB / 1.112 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.8954, allocations: 178.8 kB / 1.112 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/0.8955, allocations: 1.031 kB / 1.112 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.8955, allocations: 4.562 kB / 1.112 GB, free: 8.176 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.041e-05/0.8956, allocations: 21.97 kB / 1.112 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.495e-05/0.8957, allocations: 49.67 kB / 1.112 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.8957, allocations: 3.938 kB / 1.112 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.8958, allocations: 0 / 1.112 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.8958, allocations: 0 / 1.112 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004948/0.8963, allocations: 310 kB / 1.112 GB, free: 7.762 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.701e-05/0.8964, allocations: 36.52 kB / 1.112 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.8964, allocations: 16.86 kB / 1.112 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.8964, allocations: 4.641 kB / 1.112 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001456/0.8966, allocations: 64.3 kB / 1.112 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.8966, allocations: 1.094 kB / 1.112 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002315/0.8968, allocations: 81.53 kB / 1.113 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.8969, allocations: 57.25 kB / 1.113 GB, free: 7.469 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.545e-05/0.897, allocations: 108.1 kB / 1.113 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.897, allocations: 29.7 kB / 1.113 GB, free: 7.324 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.241e-05/0.8971, allocations: 92.23 kB / 1.113 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.8971, allocations: 19.81 kB / 1.113 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.8972, allocations: 4 kB / 1.113 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.8973, allocations: 318.8 kB / 1.113 GB, free: 6.883 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.399e-05/0.8974, allocations: 35.98 kB / 1.113 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.41e-05/0.8975, allocations: 55.44 kB / 1.113 GB, free: 6.781 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.8977, allocations: 51.89 kB / 1.113 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.8977, allocations: 0 / 1.113 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003463/0.8981, allocations: 137.6 kB / 1.113 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.8981, allocations: 41.69 kB / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.8982, allocations: 0 / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.8982, allocations: 0 / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.8983, allocations: 12 kB / 1.113 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.978e-06/0.8983, allocations: 10.41 kB / 1.113 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.8985, allocations: 43.94 kB / 1.114 GB, free: 6.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.8986, allocations: 11.98 kB / 1.114 GB, free: 6.469 MB / 0.7136 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.923e-05/0.8987, allocations: 111.1 kB / 1.114 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001135/0.8988, allocations: 81.62 kB / 1.114 GB, free: 6.27 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.8988, allocations: 7.906 kB / 1.114 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.899, allocations: 86.31 kB / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.899, allocations: 5.203 kB / 1.114 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.899, allocations: 0 / 1.114 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.899, allocations: 0 / 1.114 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.8993, allocations: 313.7 kB / 1.114 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8993, allocations: 0 / 1.114 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.631e-05/0.8994, allocations: 19.98 kB / 1.114 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.8994, allocations: 0 / 1.114 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.8994, allocations: 0 / 1.114 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.8994, allocations: 0 / 1.114 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8994, allocations: 0 / 1.114 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.8996, allocations: 183.4 kB / 1.114 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.8996, allocations: 88.95 kB / 1.114 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.8997, allocations: 0 / 1.114 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.8998, allocations: 18.98 kB / 1.114 GB, free: 5.48 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.8998, allocations: 3.984 kB / 1.114 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.8998, allocations: 4 kB / 1.114 GB, free: 5.473 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.883e-05/0.8999, allocations: 83.28 kB / 1.114 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8999, allocations: 0 / 1.114 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002546/0.9002, allocations: 35.89 kB / 1.115 GB, free: 5.355 MB / 0.7136 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005161/0.9007, allocations: 0.7142 MB / 1.115 GB, free: 4.617 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002259/0.9009, allocations: 135.3 kB / 1.115 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9009, allocations: 4 kB / 1.115 GB, free: 4.469 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.911e-05/0.901, allocations: 23.94 kB / 1.115 GB, free: 4.445 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.9012, allocations: 14.05 kB / 1.115 GB, free: 4.434 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000468/0.9017, allocations: 128.2 kB / 1.116 GB, free: 4.273 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.902, allocations: 0.6923 MB / 1.116 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.588e-05/0.902, allocations: 5.438 kB / 1.116 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.623e-05/0.9021, allocations: 23.42 kB / 1.116 GB, free: 3.527 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.9021, allocations: 3.094 kB / 1.116 GB, free: 3.527 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.9239, allocations: 1.727 MB / 1.118 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/0.9242, allocations: 145.6 kB / 1.118 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/2.454, allocations: 3.625 kB / 1.118 GB, free: 1.672 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)