Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.ZeroCrossing,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001202/0.001202, allocations: 191.5 kB / 16.14 MB, free: 6.711 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.246/1.246, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.379/2.379, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 63.89 kB / 0.8687 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5969/0.5982, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002048/0.6003, allocations: 0.8681 MB / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.6017, allocations: 1.214 MB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.149e-05/0.6018, allocations: 0 / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.6018, allocations: 3.938 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.724e-05/0.6019, allocations: 11.92 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004387/0.6024, allocations: 139.6 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.6025, allocations: 135.7 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.874e-05/0.6026, allocations: 28.19 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.6027, allocations: 59.83 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.319e-05/0.6028, allocations: 55.73 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.6028, allocations: 8 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.6029, allocations: 27.98 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.473e-05/0.6029, allocations: 15.92 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.825e-05/0.603, allocations: 51.77 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001739/0.6032, allocations: 133.9 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6032, allocations: 4 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.21e-07/0.6032, allocations: 0 / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.6032, allocations: 0 / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006246/0.6038, allocations: 448.8 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.6039, allocations: 16.03 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.25e-05/0.6039, allocations: 38.73 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.604, allocations: 12.84 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.993e-05/0.6041, allocations: 180.2 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.6041, allocations: 8.375 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.6041, allocations: 8.375 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.6044, allocations: 98.19 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.6044, allocations: 3.938 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.6044, allocations: 7.984 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6045, allocations: 0 / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.6048, allocations: 95.41 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005398/0.6053, allocations: 380.5 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.6056, allocations: 98.58 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.6058, allocations: 64.73 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.6058, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003328/0.6061, allocations: 115.3 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.6062, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006568/0.6068, allocations: 213.3 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.6069, allocations: 63.33 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.941e-05/0.607, allocations: 125.8 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.607, allocations: 29.7 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/0.6071, allocations: 104 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.6071, allocations: 31.61 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.514e-05/0.6072, allocations: 41.7 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6073, allocations: 330.8 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.6076, allocations: 75.94 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.6078, allocations: 115.2 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.6083, allocations: 185.9 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6083, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006142/0.6089, allocations: 267 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.976e-05/0.609, allocations: 37.69 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.609, allocations: 4 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.609, allocations: 0 / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.6091, allocations: 27.92 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.6092, allocations: 4.125 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002529/0.6094, allocations: 47.78 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.6094, allocations: 12 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001055/0.6096, allocations: 126.2 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/0.6096, allocations: 7.906 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004585/0.61, allocations: 177.8 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.6101, allocations: 4 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.6101, allocations: 4 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.6101, allocations: 3.984 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006374/0.6107, allocations: 458.1 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6107, allocations: 0 / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.6108, allocations: 23.97 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.6109, allocations: 0 / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.6109, allocations: 0 / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.6109, allocations: 0 / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.6109, allocations: 7.938 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004481/0.6113, allocations: 255.4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/0.6114, allocations: 84.95 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.6114, allocations: 7.984 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.6115, allocations: 11.98 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.967e-05/0.6116, allocations: 15.92 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.6117, allocations: 11.98 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.991e-05/0.6117, allocations: 103 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6117, allocations: 0 / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002808/0.612, allocations: 36.12 kB / 1.024 GB, free: 11.09 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: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008229/0.6128, allocations: 0.7952 MB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005543/0.6134, allocations: 231.2 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.6134, allocations: 256 / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.6136, allocations: 68.28 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.6139, allocations: 20.14 kB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.6164, allocations: 1.939 MB / 1.027 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.6167, allocations: 0.6965 MB / 1.027 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.903e-05/0.6167, allocations: 12.55 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.297e-05/0.6168, allocations: 27.42 kB / 1.028 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6168, allocations: 0 / 1.028 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.6294, allocations: 2.833 MB / 1.03 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.6296, allocations: 210.7 kB / 1.031 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.521/2.151, allocations: 0 / 1.031 GB, free: 4.164 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches