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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008341/0.0008341, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004849/0.004849, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.181/1.181, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.414/2.414, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003224, allocations: 11.69 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2835, allocations: 159.6 MB / 1.059 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.00092/0.2845, allocations: 466.8 kB / 1.059 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2861, allocations: 1.198 MB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.58e-05/0.2861, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.623e-05/0.2862, allocations: 4 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.426e-05/0.2862, allocations: 3.938 kB / 1.06 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004835/0.2867, allocations: 122.3 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.2869, allocations: 107.8 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.956e-05/0.287, allocations: 15.98 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.2871, allocations: 39.91 kB / 1.061 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.934e-05/0.2872, allocations: 39.83 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.2872, allocations: 4 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.998e-05/0.2873, allocations: 19.92 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.2873, allocations: 11.98 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.297e-05/0.2874, allocations: 61.55 kB / 1.061 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.2875, allocations: 104 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2875, allocations: 0 / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2876, allocations: 0 / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.2876, allocations: 4 kB / 1.061 GB, free: 2.652 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.0005333/0.2881, allocations: 393.1 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2881, allocations: 11.97 kB / 1.061 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.798e-05/0.2882, allocations: 42.69 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.041e-05/0.2882, allocations: 8.844 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.2884, allocations: 164.4 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2884, allocations: 4.359 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.2884, allocations: 12.38 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.2886, allocations: 74.16 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2886, allocations: 3.938 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.2887, allocations: 4 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.2887, allocations: 0 / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001936/0.2889, allocations: 59.94 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004566/0.2893, allocations: 324.6 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.2895, allocations: 62.48 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.2896, allocations: 32.94 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.2896, allocations: 0 / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.2899, allocations: 95.34 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.2899, allocations: 0 / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004588/0.2904, allocations: 165.5 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.2904, allocations: 51.41 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.267e-05/0.2905, allocations: 117.8 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.2905, allocations: 25.7 kB / 1.062 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.906e-05/0.2906, allocations: 88.14 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.2906, allocations: 19.8 kB / 1.063 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.2907, allocations: 17.72 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.2908, allocations: 322.8 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.2909, allocations: 51.97 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.2911, allocations: 83.39 kB / 1.063 GB, free: 220 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.2914, allocations: 149 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2914, allocations: 0 / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004583/0.2919, allocations: 211.2 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.2919, allocations: 43.34 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2919, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.292, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.285e-05/0.292, allocations: 19.92 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.2921, allocations: 4.062 kB / 1.063 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.2923, allocations: 47.95 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.2923, allocations: 8 kB / 1.064 GB, free: 15.71 MB / 0.8262 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 9.977e-05/0.2924, allocations: 125.7 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.2925, allocations: 7.906 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.2928, allocations: 133.9 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2928, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2928, allocations: 4 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2928, allocations: 0 / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.2933, allocations: 362.5 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2933, allocations: 4 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.602e-05/0.2934, allocations: 19.92 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2934, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.2934, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2934, allocations: 0 / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.2934, allocations: 7.938 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00032/0.2937, allocations: 219.4 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.273e-05/0.2938, allocations: 81.02 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.2938, allocations: 7.984 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.918e-05/0.2939, allocations: 4.469 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.2939, allocations: 11.92 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.2939, allocations: 0 / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.752e-05/0.294, allocations: 103.1 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.294, allocations: 0 / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002575/0.2943, allocations: 24 kB / 1.065 GB, free: 14.51 MB / 0.8262 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.0006412/0.2949, allocations: 0.7437 MB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003763/0.2953, allocations: 179.3 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2953, allocations: 128 / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.2955, allocations: 52.53 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.2957, allocations: 11.92 kB / 1.066 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.2978, allocations: 1.677 MB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.2981, allocations: 0.6809 MB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.236e-05/0.2981, allocations: 11.98 kB / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.2981, allocations: 19.44 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2981, allocations: 0 / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03923/0.3374, allocations: 2.134 MB / 1.07 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.3376, allocations: 215 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.143, allocations: 3.125 kB / 1.07 GB, free: 8.734 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