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.001185/0.001185, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001277/0.001277, allocations: 191.5 kB / 16.25 MB, free: 6.152 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.373/1.373, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.573/2.573, allocations: 437 MB / 0.7101 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 59.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7051/0.7067, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001961/0.7087, allocations: 0.8797 MB / 1.018 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.71, allocations: 1.202 MB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.759e-05/0.71, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.684e-05/0.7101, allocations: 3.938 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.369e-05/0.7102, allocations: 15.91 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.7106, allocations: 132 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.7108, allocations: 159.7 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.7109, allocations: 32.2 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.711, allocations: 55.89 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.793e-05/0.7111, allocations: 63.73 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.7111, allocations: 12 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.7112, allocations: 27.94 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.944e-05/0.7112, allocations: 23.95 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.883e-05/0.7113, allocations: 55.78 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001795/0.7115, allocations: 145.8 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7115, allocations: 0 / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7115, allocations: 0 / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.7115, allocations: 0 / 1.02 GB, free: 15.9 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.000629/0.7122, allocations: 454.2 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.7122, allocations: 8.031 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.7122, allocations: 34.75 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.7123, allocations: 12.84 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.993e-05/0.7124, allocations: 176.2 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.7124, allocations: 8.375 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.7125, allocations: 16.31 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.7127, allocations: 98.19 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.7127, allocations: 3.938 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.7128, allocations: 0 / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.7128, allocations: 4 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.7131, allocations: 87.91 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.7136, allocations: 388.5 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.7139, allocations: 94.64 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.714, allocations: 68.69 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.7141, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.7144, allocations: 119.2 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.7144, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006107/0.715, allocations: 205.8 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.7151, allocations: 59.34 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.84e-05/0.7151, allocations: 130.9 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.7152, allocations: 33.7 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.308e-05/0.7153, allocations: 100.1 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.7153, allocations: 35.61 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.742e-05/0.7154, allocations: 37.7 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.7155, allocations: 330.8 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/0.7157, allocations: 71.94 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.716, allocations: 116.2 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.7164, allocations: 193.1 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7164, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005669/0.717, allocations: 267.2 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.717, allocations: 33.7 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.717, allocations: 4.125 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.717, allocations: 4 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.7172, allocations: 23.97 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.7172, allocations: 7.938 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002391/0.7174, allocations: 43.8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.7175, allocations: 15.98 kB / 1.023 GB, free: 12.39 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.0001148/0.7176, allocations: 130.3 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/0.7176, allocations: 7.906 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004356/0.718, allocations: 177.9 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.7181, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.7181, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7181, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006066/0.7187, allocations: 450.2 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7187, allocations: 3.938 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.7188, allocations: 23.97 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.7188, allocations: 0 / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.7188, allocations: 4 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7188, allocations: 4 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7188, allocations: 3.938 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/0.7193, allocations: 259.3 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.059e-05/0.7193, allocations: 85.02 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.7194, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.7195, allocations: 27.91 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.045e-05/0.7196, allocations: 19.86 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.7196, allocations: 4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.186e-05/0.7196, allocations: 95.27 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7196, allocations: 0 / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000263/0.7199, allocations: 32.11 kB / 1.024 GB, free: 10.98 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.0007437/0.7206, allocations: 0.8065 MB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005438/0.7212, allocations: 243.2 kB / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.7212, allocations: 0 / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.7214, allocations: 67.89 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.7217, allocations: 26.3 kB / 1.025 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.7241, allocations: 1.924 MB / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.7244, allocations: 0.6963 MB / 1.028 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.113e-05/0.7244, allocations: 4.562 kB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.869e-05/0.7245, allocations: 39.36 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.7245, allocations: 3.938 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01271/0.7372, allocations: 2.937 MB / 1.031 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/0.7374, allocations: 226.9 kB / 1.031 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.346, allocations: 3.75 kB / 1.031 GB, free: 3.941 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