Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_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.001606/0.001606, 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.001848/0.001848, allocations: 197.1 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.305/2.305, allocations: 437 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.89 kB / 0.8694 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5115/0.5127, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001845/0.5146, allocations: 0.7248 MB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.516, allocations: 1.198 MB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.274e-05/0.5161, allocations: 0 / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.813e-05/0.5161, allocations: 3.938 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.905e-05/0.5162, allocations: 11.86 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000542/0.5167, allocations: 140.9 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.00015/0.5169, allocations: 119.8 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.903e-05/0.517, allocations: 8 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.108e-05/0.5171, allocations: 51.89 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.541e-05/0.5172, allocations: 39.83 kB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.5172, allocations: 12 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.633e-05/0.5173, allocations: 35.92 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.057e-05/0.5173, allocations: 11.98 kB / 1.02 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.5174, allocations: 39.84 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.5176, allocations: 106 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.5176, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5176, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.5176, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.7794 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.0005258/0.5181, allocations: 409 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.5182, allocations: 8.031 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.5182, allocations: 42.69 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.448e-05/0.5183, allocations: 8.844 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.5184, allocations: 168.3 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.5184, allocations: 16.3 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.5184, allocations: 4.375 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.5186, allocations: 74.14 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.5186, allocations: 3.938 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.699e-06/0.5186, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.5187, allocations: 0 / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.5188, allocations: 43.95 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/0.5193, allocations: 324.7 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.5194, allocations: 50.48 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.166e-05/0.5195, allocations: 32.94 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.5195, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.5197, allocations: 87.36 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.5197, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004115/0.5201, allocations: 145.5 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.5202, allocations: 55.41 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.724e-05/0.5203, allocations: 109.8 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.5203, allocations: 29.7 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.495e-05/0.5204, allocations: 84.14 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.5204, allocations: 23.73 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.5204, allocations: 37.7 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.5205, allocations: 322.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.5207, allocations: 51.95 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.5209, allocations: 71.39 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002477/0.5211, allocations: 137.5 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5211, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003985/0.5215, allocations: 199.1 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.5216, allocations: 37.69 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.5216, allocations: 4 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.5216, allocations: 3.938 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.5217, allocations: 20.05 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.5217, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.5219, allocations: 31.88 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.522, allocations: 11.92 kB / 1.022 GB, free: 13.1 MB / 0.7794 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.078e-05/0.5221, allocations: 122.8 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.5221, allocations: 0 / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.5224, allocations: 129.9 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.5224, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5224, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5224, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.5228, allocations: 358.8 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5228, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.026e-05/0.5228, allocations: 11.98 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.5228, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.5229, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5229, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5229, allocations: 3.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.5232, allocations: 211.5 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.5232, allocations: 85.02 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.5232, allocations: 4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.481e-05/0.5233, allocations: 7.984 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.5233, allocations: 11.92 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.5234, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.112e-05/0.5234, allocations: 91.2 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5234, allocations: 0 / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002592/0.5237, allocations: 27.94 kB / 1.023 GB, free: 11.94 MB / 0.7794 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.0005047/0.5242, allocations: 0.7323 MB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003454/0.5245, allocations: 179.2 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5246, allocations: 0 / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.5247, allocations: 48.03 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.525, allocations: 15.92 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.5267, allocations: 1.618 MB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.5269, allocations: 0.6885 MB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.944e-05/0.5269, allocations: 8 kB / 1.027 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.527, allocations: 19.42 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.527, allocations: 0 / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7798/1.307, allocations: 2.411 MB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/12.05, allocations: 11.7 kB / 1.029 GB, free: 6.141 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches