Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.425/2.425, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003575, allocations: 8 kB / 0.8145 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7521/0.7524, allocations: 142.3 MB / 0.9535 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0008095/0.7533, allocations: 442.8 kB / 0.9539 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.7548, allocations: 1.139 MB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.382e-05/0.7548, allocations: 1.281 kB / 0.9551 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.7549, allocations: 3.938 kB / 0.9551 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.14e-05/0.755, allocations: 9.25 kB / 0.9551 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005171/0.7555, allocations: 132.8 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.7556, allocations: 55.3 kB / 0.9552 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.844e-05/0.7557, allocations: 8.844 kB / 0.9553 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.988e-05/0.7558, allocations: 43.89 kB / 0.9553 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.485e-05/0.7559, allocations: 33.77 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.7559, allocations: 5.062 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.596e-05/0.756, allocations: 15.08 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.756, allocations: 18.89 kB / 0.9554 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.7561, allocations: 40.69 kB / 0.9554 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.7562, allocations: 74.31 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.7562, allocations: 0 / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.664e-06/0.7562, allocations: 0 / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7562, allocations: 0 / 0.9555 GB, free: 6.59 MB / 0.7169 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.0004811/0.7567, allocations: 390.1 kB / 0.9558 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.7568, allocations: 13.44 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.7568, allocations: 12.8 kB / 0.9559 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.43e-05/0.7569, allocations: 173.2 kB / 0.956 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.757, allocations: 12.11 kB / 0.956 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.757, allocations: 9.359 kB / 0.9561 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.7572, allocations: 69.25 kB / 0.9561 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.7572, allocations: 0 / 0.9561 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.7572, allocations: 1.062 kB / 0.9561 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.7572, allocations: 5.094 kB / 0.9561 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.7574, allocations: 55.59 kB / 0.9562 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/0.7578, allocations: 331.4 kB / 0.9565 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.758, allocations: 50.64 kB / 0.9565 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.758, allocations: 1.25 kB / 0.9565 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.7583, allocations: 91.11 kB / 0.9566 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.7583, allocations: 0 / 0.9566 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004392/0.7587, allocations: 163 kB / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.7588, allocations: 52.69 kB / 0.9568 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.08e-05/0.7588, allocations: 113.1 kB / 0.9569 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.7589, allocations: 28.8 kB / 0.957 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.7589, allocations: 95.06 kB / 0.9571 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.759, allocations: 14.81 kB / 0.9571 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.759, allocations: 2.125 kB / 0.9571 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.178e-05/0.759, allocations: 324.7 kB / 0.9574 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.7592, allocations: 51.06 kB / 0.9574 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.7593, allocations: 85.39 kB / 0.9575 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.7595, allocations: 84.95 kB / 0.9576 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7595, allocations: 5.219 kB / 0.9576 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004052/0.7599, allocations: 203.1 kB / 0.9578 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.76, allocations: 34.05 kB / 0.9578 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.76, allocations: 7.938 kB / 0.9578 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.76, allocations: 3.344 kB / 0.9578 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.624e-05/0.7601, allocations: 11.22 kB / 0.9579 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.7601, allocations: 7.922 kB / 0.9579 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.7603, allocations: 55.97 kB / 0.9579 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.7604, allocations: 9.609 kB / 0.9579 GB, free: 4.352 MB / 0.7169 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.383e-05/0.7605, allocations: 115.9 kB / 0.958 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.7605, allocations: 3.719 kB / 0.958 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.7608, allocations: 131.5 kB / 0.9582 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.7608, allocations: 7.891 kB / 0.9582 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.7608, allocations: 1.562 kB / 0.9582 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.7608, allocations: 0 / 0.9582 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003593/0.7612, allocations: 379.8 kB / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.7612, allocations: 0 / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.7612, allocations: 17.77 kB / 0.9586 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.7613, allocations: 3.953 kB / 0.9586 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.7613, allocations: 1.469 kB / 0.9586 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.7613, allocations: 4 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7613, allocations: 0.9688 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.7615, allocations: 208.5 kB / 0.9588 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.896e-05/0.7616, allocations: 86.83 kB / 0.9588 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.7616, allocations: 9.734 kB / 0.9589 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.7617, allocations: 9.391 kB / 0.9589 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.204e-05/0.7617, allocations: 7.953 kB / 0.9589 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.7617, allocations: 6.266 kB / 0.9589 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.925e-05/0.7618, allocations: 84.5 kB / 0.959 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7618, allocations: 0 / 0.959 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002747/0.7621, allocations: 27.36 kB / 0.959 GB, free: 3.395 MB / 0.7169 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 (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.000131/0.7622, allocations: 103.4 kB / 0.9591 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003437/0.7626, allocations: 180.1 kB / 0.9593 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.7626, allocations: 0 / 0.9593 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.7627, allocations: 50.16 kB / 0.9593 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.7629, allocations: 9.5 kB / 0.9593 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/0.7632, allocations: 174.5 kB / 0.9595 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.7634, allocations: 0.6882 MB / 0.9602 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.7634, allocations: 3.531 kB / 0.9602 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.7634, allocations: 14.53 kB / 0.9602 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.7634, allocations: 0 / 0.9602 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of Templates: time 0.003891/0.7673, allocations: 1.228 MB / 0.9614 GB, free: 1.664 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches