Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_10_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.004608/0.004608, allocations: 101.3 kB / 15.73 MB, free: 6.438 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.001087/0.001086, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.599/2.599, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 63.91 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3709, allocations: 151.6 MB / 1.166 GB, free: 7.254 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002045/0.373, allocations: 0.744 MB / 1.167 GB, free: 6.508 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3744, allocations: 1.151 MB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.732e-05/0.3745, allocations: 4 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.3745, allocations: 3.938 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.817e-05/0.3746, allocations: 15.88 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.3752, allocations: 135.3 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.3754, allocations: 123.7 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.773e-05/0.3755, allocations: 19.98 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.638e-05/0.3756, allocations: 47.84 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.946e-05/0.3757, allocations: 43.88 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.3757, allocations: 8 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.176e-05/0.3758, allocations: 27.92 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.3758, allocations: 15.92 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.019e-05/0.3759, allocations: 43.83 kB / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.3761, allocations: 111.7 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3761, allocations: 4 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3761, allocations: 4 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3761, allocations: 0 / 1.169 GB, free: 4.746 MB / 0.92 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.000595/0.3767, allocations: 408.6 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3768, allocations: 8.031 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.3768, allocations: 42.73 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.3768, allocations: 8.844 kB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.377, allocations: 168.3 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.377, allocations: 4.375 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.377, allocations: 8.375 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001797/0.3772, allocations: 66.22 kB / 1.169 GB, free: 3.941 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3772, allocations: 3.938 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.3772, allocations: 0 / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.3772, allocations: 0 / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3774, allocations: 43.95 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004362/0.3778, allocations: 344.5 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.378, allocations: 58.61 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.3782, allocations: 32.97 kB / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.3782, allocations: 0 / 1.17 GB, free: 3.406 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.3784, allocations: 95.3 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.3784, allocations: 0 / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0004048/0.3788, allocations: 145.5 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.3788, allocations: 59.47 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.09e-05/0.3789, allocations: 113.8 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.379, allocations: 37.64 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.943e-05/0.379, allocations: 92.12 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.379, allocations: 19.72 kB / 1.17 GB, free: 2.805 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.283e-05/0.3791, allocations: 37.7 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.303e-05/0.3792, allocations: 322.8 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.3794, allocations: 47.97 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.3795, allocations: 92.19 kB / 1.171 GB, free: 2.285 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.3798, allocations: 141.9 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.3798, allocations: 4 kB / 1.171 GB, free: 2.121 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004208/0.3802, allocations: 199.2 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.3803, allocations: 35.73 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3803, allocations: 4 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3803, allocations: 0 / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3804, allocations: 19.92 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.3804, allocations: 7.938 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.3806, allocations: 43.92 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.3807, allocations: 7.984 kB / 1.171 GB, free: 1.793 MB / 0.92 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 0.0001062/0.3808, allocations: 125.8 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.3808, allocations: 11.89 kB / 1.171 GB, free: 1.648 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.3808, allocations: 8.375 kB / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3809, allocations: 0 / 1.171 GB, free: 1.641 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3809, allocations: 7.938 kB / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3809, allocations: 4 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.3814, allocations: 370.5 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3814, allocations: 0 / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.257e-05/0.3814, allocations: 7.984 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3814, allocations: 4 kB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.3815, allocations: 3.938 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3815, allocations: 4 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3815, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.3818, allocations: 211.3 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.503e-05/0.3819, allocations: 88.95 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.3819, allocations: 0 / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.382, allocations: 7.984 kB / 1.172 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.382, allocations: 19.92 kB / 1.172 GB, free: 0.8359 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.3821, allocations: 4.062 kB / 1.172 GB, free: 0.832 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.437e-05/0.3821, allocations: 95.75 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3821, allocations: 0 / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002782/0.3824, allocations: 20 kB / 1.172 GB, free: 0.7188 MB / 0.92 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.0006361/0.383, allocations: 0.7398 MB / 1.173 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003792/0.3834, allocations: 179.8 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3834, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.3836, allocations: 47.89 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.3839, allocations: 24.31 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3857, allocations: 1.682 MB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.3859, allocations: 0.6885 MB / 1.175 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.02e-05/0.386, allocations: 4 kB / 1.175 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.386, allocations: 27.36 kB / 1.175 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.386, allocations: 4 kB / 1.175 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.4043, allocations: 2.552 MB / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.164, allocations: 7.875 kB / 1.178 GB, free: 10.7 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches