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.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.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.001569/0.001569, allocations: 108 kB / 15.61 MB, free: 152 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.002046/0.002046, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.585/2.585, allocations: 437.1 MB / 0.7104 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 67.89 kB / 0.8694 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6046/0.6061, allocations: 151.6 MB / 1.017 GB, free: 2.418 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002262/0.6084, allocations: 0.8057 MB / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001597/0.61, allocations: 1.198 MB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.861e-05/0.6101, allocations: 8 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.522e-05/0.6102, allocations: 7.875 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.764e-05/0.6103, allocations: 15.84 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005817/0.6109, allocations: 151.3 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.6111, allocations: 163.7 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.6112, allocations: 24.22 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.6113, allocations: 55.89 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.984e-05/0.6114, allocations: 63.73 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.6115, allocations: 12 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.086e-05/0.6116, allocations: 27.98 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.6116, allocations: 19.98 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.723e-05/0.6117, allocations: 63.77 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.6119, allocations: 141.8 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.6119, allocations: 3.984 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6119, allocations: 0 / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.6119, allocations: 0 / 1.02 GB, free: 15.66 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006717/0.6126, allocations: 438.4 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.6126, allocations: 16.02 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.1e-05/0.6127, allocations: 38.75 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.086e-05/0.6127, allocations: 16.78 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.6129, allocations: 180.2 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.6129, allocations: 12.36 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.6129, allocations: 8.375 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.6132, allocations: 102.1 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.6132, allocations: 3.938 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.6132, allocations: 0 / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.6132, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.6136, allocations: 91.84 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005666/0.6142, allocations: 376.6 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.6144, allocations: 98.58 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.6146, allocations: 56.81 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.6147, allocations: 4 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.615, allocations: 127.2 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 3.397e-06/0.615, allocations: 3.984 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006828/0.6157, allocations: 213.4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.6157, allocations: 55.41 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.878e-05/0.6158, allocations: 129.7 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.6158, allocations: 29.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.788e-05/0.6159, allocations: 96.08 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.6159, allocations: 31.61 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.616, allocations: 45.69 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.6161, allocations: 334.8 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.6164, allocations: 71.94 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.6166, allocations: 118.2 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004185/0.6171, allocations: 189.7 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6171, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006208/0.6177, allocations: 267.2 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.6177, allocations: 37.69 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.6177, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.6178, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.6179, allocations: 31.91 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.6179, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.6182, allocations: 47.92 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.6182, allocations: 15.98 kB / 1.023 GB, free: 12.15 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 9.939e-05/0.6183, allocations: 129.7 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.768e-05/0.6184, allocations: 7.906 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004663/0.6188, allocations: 173.9 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.6189, allocations: 4 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6189, allocations: 4 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.6189, allocations: 0 / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000665/0.6195, allocations: 458.2 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.6196, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.6197, allocations: 19.98 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.6197, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.6197, allocations: 3.984 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6197, allocations: 4 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6197, allocations: 3.938 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.6202, allocations: 263.2 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.6202, allocations: 81.02 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.6203, allocations: 4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.6204, allocations: 15.98 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.6205, allocations: 19.91 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.6205, allocations: 4 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.448e-05/0.6205, allocations: 101.1 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.61e-07/0.6206, allocations: 0 / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002848/0.6208, allocations: 28 kB / 1.025 GB, free: 10.75 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.0008027/0.6216, allocations: 0.8029 MB / 1.025 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005763/0.6222, allocations: 243.3 kB / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6223, allocations: 0 / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002064/0.6225, allocations: 72.14 kB / 1.026 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.6228, allocations: 29.52 kB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.6253, allocations: 1.896 MB / 1.027 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.6256, allocations: 0.6963 MB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.667e-05/0.6256, allocations: 12.55 kB / 1.028 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.6257, allocations: 35.42 kB / 1.028 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.6257, allocations: 0 / 1.028 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02016/0.6459, allocations: 3.132 MB / 1.031 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.694/8.339, allocations: 10.5 kB / 1.031 GB, free: 3.746 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