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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 107.9 kB / 16.37 MB, free: 6.477 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.001592/0.001592, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.528/2.528, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 63.73 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4124, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001982/0.4145, allocations: 0.7305 MB / 1.027 GB, free: 1.301 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.416, allocations: 1.186 MB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.557e-05/0.4161, allocations: 0 / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.4161, allocations: 3.938 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.504e-05/0.4162, allocations: 23.86 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.4167, allocations: 140.5 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.4169, allocations: 119.8 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.417, allocations: 19.98 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.004e-05/0.4171, allocations: 43.91 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.4172, allocations: 43.88 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.4173, allocations: 12 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.341e-05/0.4173, allocations: 23.98 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.003e-05/0.4174, allocations: 15.91 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.88e-05/0.4174, allocations: 35.86 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.4176, allocations: 115.7 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4176, allocations: 4 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4176, allocations: 0 / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.4176, allocations: 0 / 1.029 GB, free: 15.51 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.0005886/0.4182, allocations: 409 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.4183, allocations: 8.031 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.4183, allocations: 8.844 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.4185, allocations: 172.3 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.4185, allocations: 4.375 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.4185, allocations: 16.38 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.4187, allocations: 66.14 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4188, allocations: 192 / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.4188, allocations: 11.92 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.4188, allocations: 4 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.419, allocations: 35.97 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005058/0.4195, allocations: 332.6 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.4197, allocations: 54.59 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.358e-05/0.4198, allocations: 28.83 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.4198, allocations: 0 / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.42, allocations: 91.42 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.764e-06/0.4201, allocations: 0 / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004365/0.4205, allocations: 137.5 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.4206, allocations: 55.34 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.4207, allocations: 121.8 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.4207, allocations: 29.7 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.4208, allocations: 96.05 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.4208, allocations: 11.81 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.072e-05/0.4209, allocations: 41.69 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.421, allocations: 314.8 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.4212, allocations: 51.95 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.4213, allocations: 79.39 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.4216, allocations: 129 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4216, allocations: 0 / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004003/0.422, allocations: 199.2 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.4221, allocations: 36.98 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.4221, allocations: 480 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4221, allocations: 7.984 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.129e-05/0.4222, allocations: 8 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4222, allocations: 0 / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.4224, allocations: 39.86 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.293e-05/0.4224, allocations: 11.94 kB / 1.032 GB, free: 12.68 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 0.0001045/0.4225, allocations: 133.6 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.4226, allocations: 4 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.4229, allocations: 117.9 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4229, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4229, allocations: 0 / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4229, allocations: 3.984 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.4233, allocations: 366.7 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4233, allocations: 3.984 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/0.4234, allocations: 8 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4234, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.4234, allocations: 11.98 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4234, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4234, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.4237, allocations: 211.4 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.778e-05/0.4238, allocations: 81.02 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.4238, allocations: 4 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/0.4239, allocations: 8.078 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.424, allocations: 11.92 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.424, allocations: 7.984 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.384e-05/0.424, allocations: 87.22 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.424, allocations: 4 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002623/0.4243, allocations: 24 kB / 1.033 GB, free: 11.51 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.0001498/0.4245, allocations: 103.2 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003735/0.4248, allocations: 171.2 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4249, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.425, allocations: 36.11 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.4253, allocations: 24.25 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.4256, allocations: 154.7 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.4259, allocations: 0.6884 MB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.733e-05/0.4259, allocations: 4 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.426, allocations: 19.44 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.426, allocations: 0 / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of Templates: time 0.003913/0.4299, allocations: 1.377 MB / 1.035 GB, free: 8.879 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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