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.001012/0.001012, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007643/0.007643, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.242/1.242, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.319/2.319, allocations: 437.8 MB / 0.7121 GB, free: 7 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002857, allocations: 12 kB / 0.873 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5879/0.5882, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.000804/0.589, allocations: 461.5 kB / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.5905, allocations: 1.179 MB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.629e-05/0.5905, allocations: 7.938 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.392e-05/0.5906, allocations: 3.938 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.849e-05/0.5906, allocations: 11.92 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.5911, allocations: 127.4 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.5912, allocations: 99.81 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.258e-05/0.5913, allocations: 19.97 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.506e-05/0.5914, allocations: 39.91 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.766e-05/0.5915, allocations: 35.84 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.5915, allocations: 4 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.5915, allocations: 23.97 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.5916, allocations: 7.984 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.6e-05/0.5916, allocations: 61.55 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.5918, allocations: 106 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5918, allocations: 0 / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5918, allocations: 3.938 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.5918, allocations: 0 / 1.025 GB, free: 13.68 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.0004671/0.5923, allocations: 401 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.5923, allocations: 8.031 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.096e-05/0.5924, allocations: 30.75 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.543e-05/0.5924, allocations: 8.938 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.5925, allocations: 172.2 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.5925, allocations: 8.312 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.5926, allocations: 12.38 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.5928, allocations: 82.19 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.5928, allocations: 3.938 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.5928, allocations: 0 / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.5928, allocations: 0 / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.593, allocations: 55.89 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004142/0.5934, allocations: 324.7 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.5936, allocations: 58.55 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.961e-05/0.5937, allocations: 32.92 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.5937, allocations: 7.938 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.5939, allocations: 95.42 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.5939, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000408/0.5943, allocations: 145.6 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.5944, allocations: 55.41 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.783e-05/0.5945, allocations: 125.6 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.5945, allocations: 25.7 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.326e-05/0.5946, allocations: 92.12 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.5946, allocations: 23.73 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.5946, allocations: 17.72 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.672e-05/0.5947, allocations: 322.8 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.5949, allocations: 55.97 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.5951, allocations: 79.39 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.5953, allocations: 149 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5953, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004171/0.5958, allocations: 211.2 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.5958, allocations: 33.7 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.5958, allocations: 4 kB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.5958, allocations: 0 / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.5959, allocations: 19.92 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.5959, allocations: 4.062 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.5962, allocations: 43.95 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.5962, allocations: 11.94 kB / 1.028 GB, free: 10.73 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.918e-05/0.5963, allocations: 126.3 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.5963, allocations: 7.906 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.5966, allocations: 122 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.5966, allocations: 4 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.5966, allocations: 0 / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5966, allocations: 4 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004126/0.597, allocations: 366.5 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.5971, allocations: 0 / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.494e-05/0.5971, allocations: 19.98 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.5971, allocations: 0 / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.5971, allocations: 3.938 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.5972, allocations: 3.984 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5972, allocations: 3.938 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.5975, allocations: 219.9 kB / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.5975, allocations: 77.11 kB / 1.029 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.5975, allocations: 0 / 1.029 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.061e-05/0.5976, allocations: 12.08 kB / 1.029 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.5977, allocations: 11.92 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.5977, allocations: 11.92 kB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.693e-05/0.5977, allocations: 83.28 kB / 1.029 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5977, allocations: 4 kB / 1.029 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002441/0.598, allocations: 27.94 kB / 1.029 GB, free: 9.539 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.0005562/0.5985, allocations: 0.7558 MB / 1.03 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003423/0.5989, allocations: 179.3 kB / 1.03 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5989, allocations: 4 kB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.599, allocations: 48.16 kB / 1.03 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.5993, allocations: 13.48 kB / 1.03 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.6011, allocations: 1.671 MB / 1.032 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.6013, allocations: 0.6887 MB / 1.032 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.861e-05/0.6013, allocations: 8 kB / 1.032 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.6014, allocations: 19.44 kB / 1.032 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6014, allocations: 0 / 1.032 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04431/0.6457, allocations: 2.137 MB / 1.034 GB, free: 4 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.6459, allocations: 208 kB / 1.035 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/2.204, allocations: 0 / 1.035 GB, free: 3.742 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