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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001204, allocations: 194.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.3 MB / 0.6647 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.91 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6845/0.6858, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002254/0.6881, allocations: 0.7271 MB / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00153/0.6897, allocations: 1.185 MB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.657e-05/0.6898, allocations: 1.438 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.6898, allocations: 3.938 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.8e-05/0.6899, allocations: 5.281 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.6904, allocations: 139.7 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.6906, allocations: 120.9 kB / 0.9519 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.6907, allocations: 18.55 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.223e-05/0.6908, allocations: 48.06 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.231e-05/0.6909, allocations: 38.64 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.6909, allocations: 10.09 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.534e-05/0.691, allocations: 25.67 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.6911, allocations: 14.05 kB / 0.952 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.805e-05/0.6911, allocations: 43.86 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.6913, allocations: 104.2 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6913, allocations: 0 / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6913, allocations: 1.062 kB / 0.9521 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.93e-06/0.6913, allocations: 0 / 0.9521 GB, free: 7.297 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.0005176/0.6919, allocations: 414.2 kB / 0.9525 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.6919, allocations: 10 kB / 0.9526 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.483e-05/0.6919, allocations: 31.97 kB / 0.9526 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.692, allocations: 13.95 kB / 0.9526 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.314e-05/0.6921, allocations: 174.7 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.6921, allocations: 4.719 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.6921, allocations: 6.094 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.6923, allocations: 68.25 kB / 0.9528 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.6923, allocations: 3.938 kB / 0.9528 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.6923, allocations: 5.391 kB / 0.9528 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.6924, allocations: 1.531 kB / 0.9529 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.6925, allocations: 46.53 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004065/0.6929, allocations: 329.1 kB / 0.9532 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.6931, allocations: 54.64 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.993e-05/0.6932, allocations: 30.2 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.6932, allocations: 1.594 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.6935, allocations: 98.28 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.354e-06/0.6935, allocations: 0 / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004386/0.6939, allocations: 140.6 kB / 0.9535 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.694, allocations: 54.38 kB / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.382e-05/0.6941, allocations: 108.6 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.6941, allocations: 32.61 kB / 0.9537 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.842e-05/0.6941, allocations: 95.09 kB / 0.9538 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.6942, allocations: 14.81 kB / 0.9538 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-05/0.6942, allocations: 35.17 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.182e-05/0.6943, allocations: 325.3 kB / 0.9542 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.6945, allocations: 45.81 kB / 0.9542 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.6946, allocations: 77.33 kB / 0.9543 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.6949, allocations: 135.9 kB / 0.9544 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.6949, allocations: 0 / 0.9544 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004015/0.6953, allocations: 194.5 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.6954, allocations: 41.11 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.6954, allocations: 1.406 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.6954, allocations: 1.5 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.044e-05/0.6955, allocations: 13.02 kB / 0.9546 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.6955, allocations: 1.406 kB / 0.9546 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.6957, allocations: 31.58 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.6957, allocations: 5.594 kB / 0.9547 GB, free: 4.926 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,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 8.182e-05/0.6958, allocations: 137.8 kB / 0.9548 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.6959, allocations: 6.281 kB / 0.9548 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.6961, allocations: 106.6 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.6962, allocations: 1.875 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6962, allocations: 0 / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6962, allocations: 1.469 kB / 0.9549 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.6965, allocations: 365.2 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.6965, allocations: 1.469 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.6966, allocations: 14.14 kB / 0.9553 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.6966, allocations: 0 / 0.9553 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.6966, allocations: 9.469 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.6966, allocations: 0 / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.6966, allocations: 5.344 kB / 0.9553 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.6969, allocations: 217.7 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.6969, allocations: 83.92 kB / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.6969, allocations: 0 / 0.9556 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.355e-05/0.697, allocations: 8.172 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.144e-05/0.6971, allocations: 10.94 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.6971, allocations: 2.938 kB / 0.9556 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.398e-05/0.6971, allocations: 90.3 kB / 0.9557 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6971, allocations: 4 kB / 0.9557 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000255/0.6974, allocations: 19.25 kB / 0.9557 GB, free: 3.961 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 (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.0004992/0.6979, allocations: 0.7397 MB / 0.9564 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003732/0.6983, allocations: 179.5 kB / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6983, allocations: 0 / 0.9566 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.6984, allocations: 31.02 kB / 0.9566 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.6987, allocations: 21.86 kB / 0.9567 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.7005, allocations: 1.631 MB / 0.9583 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.7007, allocations: 0.6886 MB / 0.9589 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.951e-05/0.7007, allocations: 7.234 kB / 0.9589 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.7008, allocations: 19.03 kB / 0.9589 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of SimCode: time 3.4e-07/0.7008, allocations: 5.625 kB / 0.959 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.7198, allocations: 2.4 MB / 0.9613 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/8.289, allocations: 16.27 kB / 0.9613 GB, free: 15.61 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches