Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Edge,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.001804/0.001804, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.679/2.679, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 67.89 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8125/0.8141, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002059/0.8162, allocations: 0.734 MB / 0.9505 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.8175, allocations: 1.151 MB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.582e-05/0.8176, allocations: 0 / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.378e-05/0.8176, allocations: 3.938 kB / 0.9516 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.513e-05/0.8177, allocations: 13.31 kB / 0.9516 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.8182, allocations: 129.7 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.8183, allocations: 124.8 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.8185, allocations: 19.28 kB / 0.9519 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.967e-05/0.8186, allocations: 47.47 kB / 0.9519 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.587e-05/0.8186, allocations: 34.83 kB / 0.9519 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.8187, allocations: 9.5 kB / 0.9519 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.719e-05/0.8187, allocations: 33.19 kB / 0.952 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.8188, allocations: 10.88 kB / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.072e-05/0.8189, allocations: 44.38 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.819, allocations: 103.6 kB / 0.9521 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.819, allocations: 5.5 kB / 0.9521 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.856e-06/0.8191, allocations: 0 / 0.9521 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.8191, allocations: 3.938 kB / 0.9521 GB, free: 7.332 MB / 0.7169 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.000547/0.8196, allocations: 411 kB / 0.9525 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.8197, allocations: 10.09 kB / 0.9525 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.987e-05/0.8197, allocations: 36.16 kB / 0.9526 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.8198, allocations: 9.875 kB / 0.9526 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.54e-05/0.8199, allocations: 185 kB / 0.9528 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.8199, allocations: 14.02 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.8199, allocations: 7.688 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.8201, allocations: 60.97 kB / 0.9528 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.8201, allocations: 11.86 kB / 0.9528 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.8202, allocations: 5.172 kB / 0.9528 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.8202, allocations: 0.9062 kB / 0.9529 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.8203, allocations: 38.64 kB / 0.9529 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004217/0.8208, allocations: 335.7 kB / 0.9532 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.821, allocations: 59.23 kB / 0.9533 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.8211, allocations: 32.61 kB / 0.9533 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.8211, allocations: 5 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.8213, allocations: 95.64 kB / 0.9534 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.8214, allocations: 1.125 kB / 0.9534 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004471/0.8218, allocations: 135.4 kB / 0.9535 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.8219, allocations: 56.97 kB / 0.9536 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.689e-05/0.8219, allocations: 115.7 kB / 0.9537 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.822, allocations: 37.06 kB / 0.9537 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.699e-05/0.822, allocations: 91.7 kB / 0.9538 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.822, allocations: 18.45 kB / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.8221, allocations: 40.94 kB / 0.9539 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.8222, allocations: 321.7 kB / 0.9542 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.8224, allocations: 67.27 kB / 0.9542 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.8225, allocations: 83.03 kB / 0.9543 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.8228, allocations: 140.7 kB / 0.9544 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.8228, allocations: 1.125 kB / 0.9545 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004171/0.8232, allocations: 204.7 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/0.8233, allocations: 37.02 kB / 0.9547 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.8233, allocations: 1.188 kB / 0.9547 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.8233, allocations: 10.42 kB / 0.9547 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.878e-05/0.8234, allocations: 7.594 kB / 0.9547 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.8234, allocations: 2.875 kB / 0.9547 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.8236, allocations: 31.45 kB / 0.9547 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.8236, allocations: 14.2 kB / 0.9547 GB, free: 4.902 MB / 0.7169 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,edge1.y,edge1.u,$PRE.edge1.u,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 7.773e-05/0.8237, allocations: 125.3 kB / 0.9549 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.8238, allocations: 10.34 kB / 0.9549 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.8238, allocations: 10.88 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.8238, allocations: 0 / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.8238, allocations: 1.375 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.8238, allocations: 0 / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.8242, allocations: 372 kB / 0.9552 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.8242, allocations: 0 / 0.9552 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.394e-05/0.8243, allocations: 17.89 kB / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.8243, allocations: 64 / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.8243, allocations: 13.12 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.8243, allocations: 1.219 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8243, allocations: 0 / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.8246, allocations: 204.2 kB / 0.9555 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.418e-05/0.8246, allocations: 95.84 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.8247, allocations: 1.5 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.311e-05/0.8248, allocations: 6.906 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.8248, allocations: 11.33 kB / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.8248, allocations: 2.812 kB / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.673e-05/0.8249, allocations: 95.61 kB / 0.9557 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.72e-07/0.8249, allocations: 0 / 0.9557 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002658/0.8251, allocations: 32.09 kB / 0.9557 GB, free: 3.992 MB / 0.7169 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 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.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.0004839/0.8256, allocations: 0.7513 MB / 0.9564 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003733/0.826, allocations: 177.6 kB / 0.9566 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.826, allocations: 4.062 kB / 0.9566 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.8261, allocations: 43.84 kB / 0.9567 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.8264, allocations: 16.75 kB / 0.9567 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.8282, allocations: 1.681 MB / 0.9583 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.8283, allocations: 0.6879 MB / 0.959 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.318e-05/0.8283, allocations: 8.062 kB / 0.959 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.359e-05/0.8284, allocations: 23.61 kB / 0.959 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.8284, allocations: 0 / 0.959 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.8468, allocations: 2.515 MB / 0.9615 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.618/8.465, allocations: 7.016 kB / 0.9615 GB, free: 15.55 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches