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.001047/0.001048, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009535/0.0009535, allocations: 191 kB / 16.25 MB, free: 6.637 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.225/1.225, allocations: 222.9 MB / 239.9 MB, free: 4.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.39/2.39, allocations: 461.9 MB / 0.7344 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 65.92 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2336, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001834/0.2355, allocations: 0.7947 MB / 1.053 GB, free: 7.871 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.2368, allocations: 1.197 MB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.738e-05/0.2369, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.139e-05/0.237, allocations: 0 / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.237, allocations: 11.92 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.2375, allocations: 130.9 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.2377, allocations: 115.8 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.363e-05/0.2378, allocations: 19.97 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.356e-05/0.2379, allocations: 47.91 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.765e-05/0.2379, allocations: 43.81 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.238, allocations: 12 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-05/0.238, allocations: 23.94 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.915e-05/0.2381, allocations: 7.984 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.632e-05/0.2381, allocations: 47.84 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.2383, allocations: 108 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2383, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2383, allocations: 0 / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.2383, allocations: 4 kB / 1.055 GB, free: 6.102 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.0005221/0.2388, allocations: 405 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.2389, allocations: 8.625 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.222e-05/0.2389, allocations: 42.73 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.336e-05/0.239, allocations: 12.78 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.812e-05/0.2391, allocations: 164.4 kB / 1.056 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2391, allocations: 384 / 1.056 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.2391, allocations: 8.375 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.2393, allocations: 74.16 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.2393, allocations: 3.938 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.485e-06/0.2393, allocations: 3.938 kB / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2393, allocations: 0 / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.2395, allocations: 43.95 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/0.2399, allocations: 328.6 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.2401, allocations: 58.47 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.694e-05/0.2402, allocations: 28.92 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.2402, allocations: 8.062 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.2404, allocations: 87.36 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.2404, allocations: 0 / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003799/0.2408, allocations: 133.5 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.2409, allocations: 55.41 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.266e-05/0.241, allocations: 113.8 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.241, allocations: 25.7 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.819e-05/0.2411, allocations: 100 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.2411, allocations: 19.8 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.2411, allocations: 29.7 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.478e-05/0.2412, allocations: 326.8 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.2414, allocations: 43.97 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.2415, allocations: 83.39 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.2418, allocations: 129 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2418, allocations: 0 / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003839/0.2422, allocations: 203.2 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.2422, allocations: 33.7 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2422, allocations: 4 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.2422, allocations: 0 / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.145e-05/0.2423, allocations: 11.98 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2424, allocations: 7.938 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.2426, allocations: 39.86 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.2426, allocations: 4.469 kB / 1.057 GB, free: 3.23 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 8.571e-05/0.2427, allocations: 133.7 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.2427, allocations: 0 / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.243, allocations: 110 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.243, allocations: 4 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.243, allocations: 3.938 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.243, allocations: 0 / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.2434, allocations: 374.3 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2434, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.593e-05/0.2434, allocations: 11.98 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2435, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.2435, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-06/0.2435, allocations: 3.984 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2435, allocations: 3.938 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.2437, allocations: 199.5 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.217e-05/0.2438, allocations: 85.02 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.2438, allocations: 4 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.138e-05/0.2439, allocations: 7.984 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.2439, allocations: 7.938 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.2439, allocations: 0 / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.025e-05/0.244, allocations: 95.2 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.244, allocations: 4 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002388/0.2443, allocations: 24 kB / 1.058 GB, free: 2.074 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.000531/0.2448, allocations: 0.7363 MB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003412/0.2451, allocations: 175.3 kB / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2451, allocations: 0 / 1.059 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.2453, allocations: 43.89 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.2455, allocations: 13.77 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.2473, allocations: 1.646 MB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.2475, allocations: 0.6923 MB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.2475, allocations: 7.984 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.674e-05/0.2476, allocations: 19.44 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2476, allocations: 0 / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7762/1.024, allocations: 2.285 MB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/1.024, allocations: 217.5 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/3.133, allocations: 0 / 1.064 GB, free: 12.2 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