Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001195/0.001195, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.729/2.729, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 12 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8078/0.8082, allocations: 153.7 MB / 1.021 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.0008845/0.8091, allocations: 389 kB / 1.021 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.8106, allocations: 1.132 MB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.8106, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.8107, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.884e-05/0.8107, allocations: 11.92 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.8112, allocations: 126.7 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.8114, allocations: 63.86 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.8115, allocations: 8 kB / 1.023 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.8116, allocations: 43.89 kB / 1.023 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.221e-05/0.8117, allocations: 47.86 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.8117, allocations: 8 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.8118, allocations: 19.98 kB / 1.023 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.8118, allocations: 7.984 kB / 1.023 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.989e-05/0.8119, allocations: 41.64 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.812, allocations: 79.8 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.812, allocations: 0 / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.495e-06/0.8121, allocations: 0 / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.8121, allocations: 4 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005817/0.8127, allocations: 387 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.8127, allocations: 11.98 kB / 1.023 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.968e-05/0.8128, allocations: 4 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.8129, allocations: 174.9 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.8129, allocations: 4 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.813, allocations: 4 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.8132, allocations: 89.59 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.8132, allocations: 0 / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.8132, allocations: 3.938 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.8132, allocations: 0 / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.8134, allocations: 43.97 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.8139, allocations: 324.8 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.8142, allocations: 74.48 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.8142, allocations: 8 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.8145, allocations: 107.4 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.8145, allocations: 0 / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0005044/0.815, allocations: 189.5 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.8151, allocations: 55.41 kB / 1.024 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.636e-05/0.8152, allocations: 113.8 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.8152, allocations: 29.7 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.8153, allocations: 88.33 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.8153, allocations: 19.72 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.8153, allocations: 4 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.8155, allocations: 322.8 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.8156, allocations: 47.97 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.8158, allocations: 74.48 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.8159, allocations: 81.67 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.8159, allocations: 3.953 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003836/0.8163, allocations: 199.1 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.8164, allocations: 37.69 kB / 1.025 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.8164, allocations: 4.844 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.8164, allocations: 0 / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.8165, allocations: 16.05 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.8166, allocations: 4 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.8168, allocations: 43.84 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.8168, allocations: 7.984 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.8169, allocations: 127 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.8169, allocations: 11.86 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.817, allocations: 4.375 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.817, allocations: 3.938 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.817, allocations: 4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.817, allocations: 3.984 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004944/0.8175, allocations: 410.4 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.8175, allocations: 4 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.202e-05/0.8175, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8176, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.8176, allocations: 3.984 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8176, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.8176, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.8179, allocations: 247.3 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.818, allocations: 77.11 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.818, allocations: 4 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-05/0.8181, allocations: 11.98 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.8182, allocations: 15.92 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.8182, allocations: 4 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.474e-05/0.8183, allocations: 87.27 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8183, allocations: 0 / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002568/0.8185, allocations: 32 kB / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000173/0.8187, allocations: 99.72 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.8191, allocations: 187.2 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.8191, allocations: 0 / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.8192, allocations: 59.84 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.8195, allocations: 29.83 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.8199, allocations: 175.2 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.8201, allocations: 0.6926 MB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.253e-05/0.8202, allocations: 8.672 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.537e-05/0.8202, allocations: 11.44 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.8202, allocations: 0 / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of Templates: time 0.004251/0.8245, allocations: 1.489 MB / 1.029 GB, free: 8.559 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches