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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00661/0.00661, allocations: 100.2 kB / 15.73 MB, free: 6.023 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.001777/0.001777, allocations: 196.2 kB / 16.68 MB, free: 5.938 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.465/2.465, allocations: 482.6 MB / 0.755 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 67.78 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2629, allocations: 162.3 MB / 1.242 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001593/0.2645, allocations: 0.7165 MB / 1.243 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2659, allocations: 1.199 MB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.927e-05/0.2659, allocations: 4 kB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.49e-05/0.2659, allocations: 3.938 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.322e-05/0.266, allocations: 3.938 kB / 1.244 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.2664, allocations: 142.2 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.2666, allocations: 123.8 kB / 1.244 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.405e-05/0.2667, allocations: 17.39 kB / 1.244 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.613e-05/0.2668, allocations: 47.89 kB / 1.244 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.507e-05/0.2669, allocations: 43.88 kB / 1.244 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.2669, allocations: 16 kB / 1.244 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.125e-05/0.2669, allocations: 27.97 kB / 1.244 GB, free: 6.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.829e-05/0.267, allocations: 11.94 kB / 1.244 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.009e-05/0.2671, allocations: 39.91 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.2672, allocations: 107.9 kB / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.2672, allocations: 0 / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2672, allocations: 0 / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.367e-06/0.2672, allocations: 0 / 1.244 GB, free: 6.434 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.000541/0.2678, allocations: 414.4 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.2678, allocations: 12.03 kB / 1.245 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.2679, allocations: 46.67 kB / 1.245 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.2679, allocations: 8.891 kB / 1.245 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.268, allocations: 164.4 kB / 1.245 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.268, allocations: 4.375 kB / 1.245 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.2681, allocations: 4.375 kB / 1.245 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.2682, allocations: 66.22 kB / 1.245 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.2683, allocations: 3.938 kB / 1.245 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.2683, allocations: 0 / 1.245 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.2683, allocations: 4 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.2685, allocations: 47.89 kB / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004006/0.2689, allocations: 320.7 kB / 1.245 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.269, allocations: 50.55 kB / 1.245 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.421e-05/0.2691, allocations: 32.92 kB / 1.245 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.2691, allocations: 7.938 kB / 1.245 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001887/0.2693, allocations: 91.36 kB / 1.245 GB, free: 5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2694, allocations: 3.938 kB / 1.245 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0003921/0.2697, allocations: 133.6 kB / 1.246 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2698, allocations: 55.41 kB / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.78e-05/0.2699, allocations: 113.8 kB / 1.246 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.2699, allocations: 29.69 kB / 1.246 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.27, allocations: 96.03 kB / 1.246 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.27, allocations: 15.91 kB / 1.246 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.113e-05/0.2701, allocations: 33.64 kB / 1.246 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2702, allocations: 326.8 kB / 1.246 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2704, allocations: 47.97 kB / 1.246 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.2705, allocations: 83.33 kB / 1.246 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.2708, allocations: 137 kB / 1.247 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2708, allocations: 0 / 1.247 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003953/0.2712, allocations: 195.2 kB / 1.247 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.2712, allocations: 33.7 kB / 1.247 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2712, allocations: 4 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.707e-06/0.2712, allocations: 0 / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.907e-05/0.2713, allocations: 15.92 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.2713, allocations: 8.062 kB / 1.247 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.2715, allocations: 35.95 kB / 1.247 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.2716, allocations: 8 kB / 1.247 GB, free: 3.551 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 9.243e-05/0.2717, allocations: 129.3 kB / 1.247 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.2717, allocations: 4.047 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.272, allocations: 121.9 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.272, allocations: 4 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.272, allocations: 0 / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.272, allocations: 0 / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004006/0.2724, allocations: 362.5 kB / 1.247 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2724, allocations: 0 / 1.247 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.924e-05/0.2725, allocations: 11.98 kB / 1.247 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2725, allocations: 8.406 kB / 1.247 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.2725, allocations: 0 / 1.247 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2725, allocations: 0 / 1.247 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2725, allocations: 3.938 kB / 1.247 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.2728, allocations: 203.4 kB / 1.248 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/0.2728, allocations: 89.03 kB / 1.248 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.2729, allocations: 0 / 1.248 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.368e-05/0.273, allocations: 15.98 kB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.273, allocations: 7.938 kB / 1.248 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.273, allocations: 0 / 1.248 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.812e-05/0.2731, allocations: 91.27 kB / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.2731, allocations: 0 / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002269/0.2733, allocations: 23.95 kB / 1.248 GB, free: 2.395 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.000588/0.2739, allocations: 0.7486 MB / 1.249 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003371/0.2742, allocations: 175.3 kB / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2742, allocations: 0 / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.2744, allocations: 28.11 kB / 1.249 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.2746, allocations: 23.92 kB / 1.249 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.2765, allocations: 1.646 MB / 1.25 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.2768, allocations: 0.6903 MB / 1.251 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.549e-05/0.2768, allocations: 4 kB / 1.251 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.2769, allocations: 15.42 kB / 1.251 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.2769, allocations: 0.5625 kB / 1.251 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.387/1.663, allocations: 2.448 MB / 1.253 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/12.27, allocations: 15.69 kB / 1.253 GB, free: 12.56 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=400 --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