Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_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.001286/0.001286, 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.001207/0.001207, allocations: 194.3 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.204/1.204, 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 11.0.1-master/package.mo): time 2.421/2.421, allocations: 461.9 MB / 0.7347 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.17 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.222, allocations: 157.4 MB / 1.053 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001642/0.2236, allocations: 0.7261 MB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.2248, allocations: 1.193 MB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.2248, allocations: 4 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.503e-05/0.2249, allocations: 11.88 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.988e-05/0.2249, allocations: 11.86 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.2253, allocations: 146.8 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.2255, allocations: 115.8 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.866e-05/0.2256, allocations: 12 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.122e-05/0.2256, allocations: 51.89 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.365e-05/0.2257, allocations: 39.83 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.2257, allocations: 8 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.265e-05/0.2258, allocations: 27.92 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.9e-05/0.2258, allocations: 15.97 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.2259, allocations: 39.86 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.226, allocations: 112 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.226, allocations: 0 / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.226, allocations: 4 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.2261, allocations: 0 / 1.055 GB, free: 5.711 MB / 0.8106 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.0004616/0.2265, allocations: 401 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.2266, allocations: 12.62 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.752e-05/0.2266, allocations: 38.75 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.2266, allocations: 8.844 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.9e-05/0.2267, allocations: 172.4 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.2267, allocations: 8.359 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.2268, allocations: 8.375 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.2269, allocations: 66.16 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.227, allocations: 3.938 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.227, allocations: 0 / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.227, allocations: 4 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.2271, allocations: 39.95 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.2275, allocations: 332.6 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.2277, allocations: 54.48 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.712e-05/0.2278, allocations: 24.94 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.2278, allocations: 4 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.228, allocations: 83.44 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.228, allocations: 0 / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003746/0.2284, allocations: 145.4 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.2284, allocations: 59.41 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.606e-05/0.2285, allocations: 117.8 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.2285, allocations: 29.7 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.2285, allocations: 92.05 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.2286, allocations: 15.8 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.868e-05/0.2286, allocations: 33.7 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.988e-05/0.2287, allocations: 318.8 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.2289, allocations: 51.95 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.229, allocations: 79.89 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.2293, allocations: 125 kB / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2293, allocations: 4 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003695/0.2296, allocations: 195.2 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.2297, allocations: 42.78 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2297, allocations: 3.938 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.2297, allocations: 4 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/0.2298, allocations: 11.98 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.2298, allocations: 0 / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.23, allocations: 39.94 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.23, allocations: 11.98 kB / 1.058 GB, free: 2.84 MB / 0.8106 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.274e-05/0.2301, allocations: 121.7 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.2301, allocations: 4 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002556/0.2304, allocations: 117.9 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2304, allocations: 4.094 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2304, allocations: 7.984 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2304, allocations: 4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003496/0.2308, allocations: 366.7 kB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2308, allocations: 4 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.487e-05/0.2308, allocations: 7.984 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2308, allocations: 0 / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.2309, allocations: 8 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2309, allocations: 80 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.2309, allocations: 7.922 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.2311, allocations: 196 kB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.2312, allocations: 81.02 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.2312, allocations: 4 kB / 1.059 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.2313, allocations: 11.98 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.825e-05/0.2313, allocations: 11.92 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.2313, allocations: 7.938 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.781e-05/0.2314, allocations: 95.2 kB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2314, allocations: 0 / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002311/0.2316, allocations: 24 kB / 1.059 GB, free: 1.672 MB / 0.8106 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.0004771/0.2321, allocations: 0.7358 MB / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003137/0.2324, allocations: 171.3 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.2324, allocations: 0 / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2325, allocations: 43.91 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2328, allocations: 20.05 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.2344, allocations: 1.624 MB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001769/0.2346, allocations: 0.6884 MB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.536e-05/0.2346, allocations: 4 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.2347, allocations: 27.42 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.2347, allocations: 0 / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4969/0.7315, allocations: 2.414 MB / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.619, allocations: 5.609 kB / 1.065 GB, free: 11.89 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches