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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001225/0.001225, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001227/0.001227, allocations: 191.2 kB / 16.14 MB, free: 6.711 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.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.299/2.299, allocations: 437 MB / 0.7099 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 0.8687 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5069, allocations: 151.6 MB / 1.017 GB, free: 2.84 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001736/0.5087, allocations: 0.7876 MB / 1.017 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.5099, allocations: 1.198 MB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.51, allocations: 8 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.557e-05/0.51, allocations: 0 / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.5101, allocations: 7.938 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003868/0.5105, allocations: 131.6 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.997e-05/0.5106, allocations: 99.81 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.789e-05/0.5106, allocations: 15.98 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.132e-05/0.5107, allocations: 47.84 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.365e-05/0.5108, allocations: 39.83 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.5108, allocations: 8 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.806e-05/0.5109, allocations: 23.97 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.5109, allocations: 7.984 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.511, allocations: 35.86 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.5111, allocations: 106 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5111, allocations: 3.938 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of FrontEnd: time 7.51e-07/0.5111, allocations: 0 / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.785e-06/0.5111, allocations: 0 / 1.019 GB, free: 328 kB / 0.7637 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.0005182/0.5117, allocations: 409 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.5117, allocations: 8.031 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.978e-05/0.5117, allocations: 38.75 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.5118, allocations: 8.844 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.76e-05/0.5119, allocations: 180.2 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.5119, allocations: 384 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.5119, allocations: 12.38 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.5121, allocations: 62.22 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.5121, allocations: 7.938 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.5122, allocations: 4 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.5122, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.5123, allocations: 39.95 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.5128, allocations: 324.6 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.5129, allocations: 54.55 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.364e-05/0.513, allocations: 24.94 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.5131, allocations: 7.984 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.5133, allocations: 87.44 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.5133, allocations: 4 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000416/0.5137, allocations: 137.5 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.5137, allocations: 55.41 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.832e-05/0.5138, allocations: 117.8 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.5138, allocations: 25.7 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.5139, allocations: 92.12 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.5139, allocations: 27.66 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.514, allocations: 33.7 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/0.5141, allocations: 322.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.5142, allocations: 43.97 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.5144, allocations: 83.33 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.5147, allocations: 133 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.5147, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004045/0.5151, allocations: 199.2 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.5151, allocations: 33.75 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.5151, allocations: 8 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/0.5152, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.211e-05/0.5152, allocations: 11.98 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.5153, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.5155, allocations: 39.86 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.5155, allocations: 4.094 kB / 1.022 GB, free: 13.45 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.245e-05/0.5156, allocations: 130.2 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.5156, allocations: 3.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002802/0.5159, allocations: 114 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.5159, allocations: 4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.5159, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.5159, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003973/0.5163, allocations: 366.4 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5163, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-05/0.5164, allocations: 11.98 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5164, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.5164, allocations: 480 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.5164, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5164, allocations: 3.938 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.5167, allocations: 211.8 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.5168, allocations: 89 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.5168, allocations: 7.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.539e-05/0.5169, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.5169, allocations: 11.92 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.5169, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.232e-05/0.517, allocations: 95.27 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.517, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002515/0.5172, allocations: 31.94 kB / 1.023 GB, free: 12.27 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.0005374/0.5178, allocations: 0.7398 MB / 1.023 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003358/0.5181, allocations: 175.3 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/0.5181, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.5183, allocations: 35.86 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.5185, allocations: 19.92 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.5203, allocations: 1.641 MB / 1.025 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.5206, allocations: 0.6848 MB / 1.026 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.133e-05/0.5206, allocations: 7.984 kB / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.5206, allocations: 19.44 kB / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.5206, allocations: 0 / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.536, allocations: 2.197 MB / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.5362, allocations: 205.9 kB / 1.028 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.186, allocations: 0 / 1.028 GB, free: 6.457 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