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.001243/0.001243, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001266/0.001266, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.366/1.366, allocations: 222.9 MB / 239.9 MB, free: 4.59 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.419/2.419, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.591/0.5924, allocations: 140.4 MB / 0.9492 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001941/0.5944, allocations: 0.7898 MB / 0.95 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.5956, allocations: 1.177 MB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.283e-05/0.5957, allocations: 1.375 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.5958, allocations: 3.938 kB / 0.9512 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.318e-05/0.5959, allocations: 17.28 kB / 0.9512 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.5963, allocations: 117.8 kB / 0.9513 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.5965, allocations: 127.6 kB / 0.9514 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.682e-05/0.5966, allocations: 19.7 kB / 0.9514 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.5967, allocations: 48.12 kB / 0.9515 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.5968, allocations: 42.28 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.5968, allocations: 9.25 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.056e-05/0.5969, allocations: 21.3 kB / 0.9516 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/0.597, allocations: 14.16 kB / 0.9516 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.931e-05/0.597, allocations: 40.19 kB / 0.9516 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.5972, allocations: 105.1 kB / 0.9517 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.5972, allocations: 0 / 0.9517 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5972, allocations: 4 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.5972, allocations: 0 / 0.9517 GB, free: 7.207 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.0005481/0.5978, allocations: 411.5 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.5978, allocations: 9.156 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.14e-05/0.5979, allocations: 39.89 kB / 0.9521 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.5979, allocations: 14.41 kB / 0.9522 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.845e-05/0.598, allocations: 167.2 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.5981, allocations: 3.219 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.5981, allocations: 15.25 kB / 0.9523 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.5983, allocations: 63.84 kB / 0.9524 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.5983, allocations: 3.938 kB / 0.9524 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.5983, allocations: 5.328 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.5984, allocations: 1.219 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.5985, allocations: 39.16 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/0.599, allocations: 334.1 kB / 0.9528 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.5991, allocations: 45.69 kB / 0.9528 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.307e-05/0.5992, allocations: 30.92 kB / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.5993, allocations: 3.938 kB / 0.9528 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.5995, allocations: 90.95 kB / 0.9529 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.5995, allocations: 0 / 0.9529 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004356/0.6, allocations: 133 kB / 0.9531 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.6, allocations: 52.75 kB / 0.9531 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.483e-05/0.6001, allocations: 121.2 kB / 0.9532 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.6001, allocations: 32.42 kB / 0.9533 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.972e-05/0.6002, allocations: 88.12 kB / 0.9533 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.6002, allocations: 26.11 kB / 0.9534 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.055e-05/0.6003, allocations: 40.31 kB / 0.9534 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.914e-05/0.6003, allocations: 316.1 kB / 0.9537 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.6005, allocations: 49.8 kB / 0.9537 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.6006, allocations: 80.7 kB / 0.9538 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.6009, allocations: 129.8 kB / 0.9539 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6009, allocations: 0 / 0.9539 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004282/0.6013, allocations: 199 kB / 0.9541 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.6014, allocations: 32.42 kB / 0.9542 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.6014, allocations: 1.438 kB / 0.9542 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.6014, allocations: 5.297 kB / 0.9542 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.772e-05/0.6015, allocations: 16.14 kB / 0.9542 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.6015, allocations: 1.125 kB / 0.9542 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.6017, allocations: 41.02 kB / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.6018, allocations: 9.547 kB / 0.9542 GB, free: 4.832 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 7.115e-05/0.6018, allocations: 119.3 kB / 0.9544 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.6019, allocations: 7.219 kB / 0.9544 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002804/0.6021, allocations: 115.2 kB / 0.9545 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.6022, allocations: 5.203 kB / 0.9545 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6022, allocations: 0 / 0.9545 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.6022, allocations: 4 kB / 0.9545 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.6025, allocations: 366.1 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6025, allocations: 1.531 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.178e-05/0.6026, allocations: 5.688 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.6026, allocations: 5 kB / 0.9548 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.6026, allocations: 5.484 kB / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.6026, allocations: 0 / 0.9548 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6027, allocations: 7.938 kB / 0.9549 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.6029, allocations: 207.4 kB / 0.9551 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.043e-05/0.6029, allocations: 82.08 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.603, allocations: 1.688 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.25e-05/0.6031, allocations: 8.766 kB / 0.9551 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.6031, allocations: 9.547 kB / 0.9551 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.6031, allocations: 11.61 kB / 0.9552 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.302e-05/0.6032, allocations: 89.94 kB / 0.9552 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6032, allocations: 0 / 0.9552 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002719/0.6035, allocations: 23.69 kB / 0.9553 GB, free: 3.875 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.000457/0.6039, allocations: 0.747 MB / 0.956 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003708/0.6043, allocations: 167 kB / 0.9562 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.6043, allocations: 1.188 kB / 0.9562 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.6044, allocations: 37.78 kB / 0.9562 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.6047, allocations: 18.88 kB / 0.9562 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.6064, allocations: 1.64 MB / 0.9578 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.6066, allocations: 0.6913 MB / 0.9585 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.509e-05/0.6066, allocations: 3 kB / 0.9585 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.6066, allocations: 14.75 kB / 0.9585 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6066, allocations: 0 / 0.9585 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01288/0.6195, allocations: 2.278 MB / 0.9607 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.6198, allocations: 210.1 kB / 0.9609 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.607, allocations: 0 / 0.9609 GB, free: 15.41 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