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.00853/0.00853, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.001632/0.001632, allocations: 187.4 kB / 16.67 MB, free: 5.977 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.739/2.739, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.89 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2932, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002196/0.2954, allocations: 0.7181 MB / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001752/0.2972, allocations: 1.19 MB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.983e-05/0.2973, allocations: 4 kB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.572e-05/0.2974, allocations: 3.938 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.721e-05/0.2975, allocations: 7.875 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006188/0.2981, allocations: 144 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.2983, allocations: 119.8 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.2985, allocations: 19.98 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.2986, allocations: 43.91 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.2987, allocations: 47.86 kB / 1.21 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.397e-05/0.2987, allocations: 15.94 kB / 1.21 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.651e-05/0.2988, allocations: 23.98 kB / 1.21 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.36e-05/0.2989, allocations: 8 kB / 1.21 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.379e-05/0.2989, allocations: 43.78 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.2992, allocations: 115.9 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2992, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2992, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.2992, allocations: 4 kB / 1.21 GB, free: 7.672 MB / 0.9669 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.0006399/0.2998, allocations: 416.9 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.2999, allocations: 12.62 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.2999, allocations: 34.73 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.3, allocations: 8.922 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.3001, allocations: 168.3 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.3002, allocations: 8.375 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.3002, allocations: 4.375 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.3004, allocations: 74.16 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3004, allocations: 3.938 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.3005, allocations: 0 / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.3005, allocations: 0 / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.3007, allocations: 43.95 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.3012, allocations: 324.7 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.3014, allocations: 54.5 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.3015, allocations: 32.92 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.3015, allocations: 80 / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.3018, allocations: 95.25 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3018, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004538/0.3023, allocations: 133.6 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3023, allocations: 51.41 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.3024, allocations: 121.7 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.3024, allocations: 29.7 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.623e-05/0.3025, allocations: 88.14 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.3025, allocations: 20.17 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.3026, allocations: 41.69 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3027, allocations: 318.8 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3029, allocations: 51.95 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.3031, allocations: 71.34 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.3033, allocations: 137 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3034, allocations: 0 / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004521/0.3038, allocations: 199.1 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.3039, allocations: 47.27 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3039, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3039, allocations: 0 / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.66e-05/0.304, allocations: 15.98 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.304, allocations: 4 kB / 1.212 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.3042, allocations: 31.95 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3043, allocations: 4 kB / 1.212 GB, free: 4.797 MB / 0.9669 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 0.0001056/0.3044, allocations: 137.7 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.3044, allocations: 3.906 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002892/0.3047, allocations: 114 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3047, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3047, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3047, allocations: 0 / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000418/0.3051, allocations: 366.4 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3052, allocations: 0 / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.476e-05/0.3052, allocations: 11.98 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.3052, allocations: 96 / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.3053, allocations: 7.984 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3053, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3053, allocations: 7.922 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.3056, allocations: 207.4 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.365e-05/0.3056, allocations: 81.11 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.3057, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.3058, allocations: 7.984 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.3058, allocations: 11.94 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.3058, allocations: 0 / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.484e-05/0.3059, allocations: 95.2 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3059, allocations: 384 / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002609/0.3061, allocations: 20 kB / 1.213 GB, free: 3.637 MB / 0.9669 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.00066/0.3068, allocations: 0.748 MB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004023/0.3072, allocations: 171.3 kB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3072, allocations: 0 / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.3074, allocations: 39.91 kB / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.3077, allocations: 21.3 kB / 1.214 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.3097, allocations: 1.634 MB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.31, allocations: 0.6885 MB / 1.216 GB, free: 172 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.3101, allocations: 8 kB / 1.216 GB, free: 164 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.413e-05/0.3101, allocations: 23.36 kB / 1.217 GB, free: 140 kB / 0.9669 GB Notification: Performance of SimCode: time 3.41e-07/0.3101, allocations: 0 / 1.217 GB, free: 140 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.3297, allocations: 2.484 MB / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.866/8.196, allocations: 18.33 kB / 1.219 GB, free: 13.76 MB / 0.9825 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