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.0007774/0.0007773, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.00538/0.00538, allocations: 172.6 kB / 16.27 MB, free: 6.652 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.352/1.352, allocations: 223.3 MB / 240.3 MB, free: 5.371 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.534/2.534, allocations: 437.8 MB / 0.7121 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.000435, allocations: 8 kB / 0.873 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.6585, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0009179/0.6594, allocations: 0.5332 MB / 1.024 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001335/0.6608, allocations: 1.198 MB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.964e-05/0.6608, allocations: 7.938 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.565e-05/0.6609, allocations: 4 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.245e-05/0.6609, allocations: 11.86 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.6614, allocations: 139.5 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.6615, allocations: 139.7 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.045e-05/0.6616, allocations: 24.19 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.481e-05/0.6617, allocations: 55.89 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.966e-05/0.6618, allocations: 55.69 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.6618, allocations: 8 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.07e-05/0.6619, allocations: 19.98 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.461e-05/0.6619, allocations: 15.97 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.96e-05/0.662, allocations: 73.48 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.6622, allocations: 141.8 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.6622, allocations: 0 / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.664e-06/0.6622, allocations: 0 / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.337e-06/0.6622, allocations: 0 / 1.025 GB, free: 13.43 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.0005857/0.6628, allocations: 432.9 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.6628, allocations: 12.03 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.356e-05/0.6629, allocations: 42.67 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.191e-05/0.6629, allocations: 12.84 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.409e-05/0.663, allocations: 172.2 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.6631, allocations: 8.375 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.6631, allocations: 12.38 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.6634, allocations: 110.2 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.6634, allocations: 3.938 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.6634, allocations: 0 / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.6634, allocations: 8 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.6638, allocations: 115.8 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000534/0.6644, allocations: 372.7 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.6646, allocations: 114.6 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.6648, allocations: 68.81 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.6649, allocations: 4 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.6652, allocations: 131.2 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 3.115e-06/0.6652, allocations: 0 / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.000697/0.6659, allocations: 245.4 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.6659, allocations: 55.41 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.017e-05/0.666, allocations: 121.7 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.6661, allocations: 37.69 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.6661, allocations: 104 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.6662, allocations: 23.7 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.6662, allocations: 29.7 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.6663, allocations: 322.8 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.6666, allocations: 91.94 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.6669, allocations: 124.2 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.6673, allocations: 213.7 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6673, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006212/0.6679, allocations: 283 kB / 1.029 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.668, allocations: 47.34 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.668, allocations: 4 kB / 1.029 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.668, allocations: 4.125 kB / 1.029 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.6682, allocations: 31.91 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.6682, allocations: 0 / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.6685, allocations: 66.14 kB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.6685, allocations: 8 kB / 1.029 GB, free: 9.781 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.0001135/0.6686, allocations: 138.2 kB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.6686, allocations: 7.906 kB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004783/0.6691, allocations: 198.4 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.6691, allocations: 0 / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.6691, allocations: 0 / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.6692, allocations: 8 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.6698, allocations: 470.2 kB / 1.03 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6698, allocations: 0 / 1.03 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.6699, allocations: 19.98 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.6699, allocations: 4 kB / 1.03 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.67, allocations: 3.984 kB / 1.03 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.67, allocations: 8 kB / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.67, allocations: 3.938 kB / 1.03 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.6705, allocations: 283.2 kB / 1.03 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.6705, allocations: 85.02 kB / 1.03 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.6705, allocations: 4 kB / 1.03 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.6707, allocations: 15.98 kB / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.6707, allocations: 27.91 kB / 1.03 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.6708, allocations: 4 kB / 1.03 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.292e-05/0.6708, allocations: 93.14 kB / 1.03 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6708, allocations: 0 / 1.03 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002611/0.6711, allocations: 36.12 kB / 1.03 GB, free: 8.293 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.0007976/0.6719, allocations: 0.8272 MB / 1.031 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005598/0.6725, allocations: 259.3 kB / 1.031 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6725, allocations: 0 / 1.031 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002152/0.6727, allocations: 75.89 kB / 1.031 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.673, allocations: 28.05 kB / 1.031 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.6755, allocations: 1.987 MB / 1.033 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.6757, allocations: 0.7004 MB / 1.034 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.603e-05/0.6758, allocations: 8.562 kB / 1.034 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.6759, allocations: 27.42 kB / 1.034 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.6759, allocations: 0 / 1.034 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01229/0.6882, allocations: 2.77 MB / 1.037 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.6884, allocations: 203.7 kB / 1.037 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/2.356, allocations: 0 / 1.037 GB, free: 1.34 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