Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Logical.Validation.FallingEdge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge",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.007184/0.007184, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001424/0.001424, allocations: 191.9 kB / 16.67 MB, free: 5.973 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.81/2.81, allocations: 469.4 MB / 0.7422 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.91 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.966/0.9679, allocations: 159.1 MB / 1.22 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.002121/0.9701, allocations: 0.734 MB / 1.22 GB, free: 1.523 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001747/0.9719, allocations: 1.158 MB / 1.222 GB, free: 360 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.647e-05/0.972, allocations: 4 kB / 1.222 GB, free: 356 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.983e-05/0.9721, allocations: 7.875 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.9722, allocations: 11.86 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.9728, allocations: 138.5 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.9731, allocations: 123.8 kB / 1.222 GB, free: 76 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.9732, allocations: 19.94 kB / 1.222 GB, free: 56 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.9733, allocations: 51.83 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.9735, allocations: 43.83 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.9735, allocations: 16 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.9736, allocations: 23.98 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.9736, allocations: 11.98 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.027e-05/0.9737, allocations: 51.77 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002318/0.974, allocations: 102.4 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.974, allocations: 0 / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.713e-06/0.974, allocations: 3.938 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.974, allocations: 0 / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007631/0.9748, allocations: 417.9 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.9748, allocations: 16.61 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.352e-05/0.9749, allocations: 30.75 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/0.975, allocations: 12.89 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.9751, allocations: 168.3 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.9751, allocations: 8.375 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.9752, allocations: 8.359 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.9754, allocations: 62.23 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.9754, allocations: 3.938 kB / 1.223 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.9754, allocations: 3.984 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.9754, allocations: 4 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.9756, allocations: 47.95 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005236/0.9762, allocations: 344.5 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.9764, allocations: 62.59 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.9765, allocations: 28.97 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.9765, allocations: 4 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.9768, allocations: 87.3 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.9768, allocations: 0 / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0004521/0.9773, allocations: 141.6 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.9773, allocations: 63.39 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.394e-05/0.9774, allocations: 117.8 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.9775, allocations: 29.7 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.9775, allocations: 96.03 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.9776, allocations: 23.83 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.205e-05/0.9777, allocations: 37.7 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.9778, allocations: 330.7 kB / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.978, allocations: 47.97 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.9782, allocations: 88.25 kB / 1.224 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.9785, allocations: 154.2 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.9785, allocations: 0 / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004681/0.979, allocations: 207.1 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/0.9791, allocations: 41.83 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.9791, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.9791, allocations: 4 kB / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.832e-05/0.9792, allocations: 11.98 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.9792, allocations: 0 / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.9794, allocations: 39.84 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.9795, allocations: 12 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,falEdg.not_u,$PRE.falEdg.not_u,falEdg.y,booPul.y,$PRE.booPul.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.9796, allocations: 132.3 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/0.9796, allocations: 7.953 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.9797, allocations: 12.36 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.9797, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.9797, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.9797, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004879/0.9802, allocations: 378.4 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.9802, allocations: 4 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.9803, allocations: 7.984 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.9803, allocations: 4 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.9803, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.9803, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.9803, allocations: 3.938 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.9806, allocations: 207.5 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.9807, allocations: 85.06 kB / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.9807, allocations: 0 / 1.226 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.062e-05/0.9808, allocations: 11.98 kB / 1.226 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.9809, allocations: 11.92 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.9809, allocations: 7.938 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.379e-05/0.9809, allocations: 95.2 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.981, allocations: 0 / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002818/0.9812, allocations: 27.94 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (falEdg.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,falEdg.not_u,triggeredSampler.y) * Number of discrete states: 1 (falEdg.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0006775/0.9819, allocations: 0.7432 MB / 1.227 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.9823, allocations: 183.3 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.9824, allocations: 0 / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.9825, allocations: 43.84 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.9828, allocations: 16.11 kB / 1.227 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.985, allocations: 1.684 MB / 1.228 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.9853, allocations: 0.6962 MB / 1.229 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.506e-05/0.9853, allocations: 4 kB / 1.229 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.589e-05/0.9854, allocations: 23.42 kB / 1.229 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.9854, allocations: 0 / 1.229 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/1.005, allocations: 2.557 MB / 1.232 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/8.652, allocations: 19.05 kB / 1.232 GB, free: 5.68 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches