Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 108.5 kB / 16.41 MB, free: 6.512 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.001807/0.001807, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.437/1.437, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.353/2.353, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001648, allocations: 59.91 kB / 0.9516 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8272/0.8289, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002213/0.8311, allocations: 0.8063 MB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.8327, allocations: 1.203 MB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.655e-05/0.8327, allocations: 1.125 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.8328, allocations: 12.44 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.671e-05/0.8329, allocations: 16.66 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.8334, allocations: 148 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000193/0.8336, allocations: 159.8 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.819e-05/0.8337, allocations: 25 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.8338, allocations: 64.62 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.8339, allocations: 66.98 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.834, allocations: 13.84 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.349e-05/0.8341, allocations: 27.81 kB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.8341, allocations: 19.2 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.165e-05/0.8342, allocations: 64.02 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.8344, allocations: 138.8 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.8344, allocations: 1.719 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.784e-06/0.8344, allocations: 0 / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.8344, allocations: 3.938 kB / 1.091 GB, free: 3.801 MB / 0.8575 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.0006684/0.8351, allocations: 440.8 kB / 1.092 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.8352, allocations: 9.094 kB / 1.092 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.707e-05/0.8352, allocations: 12.39 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.865e-05/0.8353, allocations: 189.9 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.8354, allocations: 5.406 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.8354, allocations: 13.58 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.8357, allocations: 91.25 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.8357, allocations: 0.75 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.8358, allocations: 10.81 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.8358, allocations: 1.188 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003526/0.8361, allocations: 90.31 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.8367, allocations: 380.6 kB / 1.093 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.837, allocations: 100.1 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.8372, allocations: 54.09 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.8372, allocations: 2.422 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.8375, allocations: 117.5 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.763e-06/0.8375, allocations: 4 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0006688/0.8382, allocations: 219.8 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.089e-05/0.8382, allocations: 57.89 kB / 1.093 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.257e-05/0.8383, allocations: 131.1 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.8384, allocations: 37.67 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/0.8384, allocations: 99.61 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.8385, allocations: 26.45 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.8385, allocations: 46.94 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.507e-05/0.8386, allocations: 325.1 kB / 1.094 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.8389, allocations: 76.39 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.8392, allocations: 116.5 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004306/0.8396, allocations: 182 kB / 1.094 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.8396, allocations: 4.688 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006133/0.8402, allocations: 259.8 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.8403, allocations: 42.95 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.8403, allocations: 6.672 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.8403, allocations: 2.031 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.8404, allocations: 23.41 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.8405, allocations: 3.109 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.8407, allocations: 47.47 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.8408, allocations: 8.984 kB / 1.094 GB, free: 1.5 MB / 0.8575 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 8.71e-05/0.8409, allocations: 136.1 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.8409, allocations: 8.547 kB / 1.095 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004799/0.8414, allocations: 170 kB / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.8414, allocations: 0.6094 kB / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8414, allocations: 0.9062 kB / 1.095 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.337e-05/0.8414, allocations: 95.92 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.8414, allocations: 2.859 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.96e-05/0.8415, allocations: 19.58 kB / 1.095 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.042e-05/0.8416, allocations: 12.39 kB / 1.095 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005143/0.8421, allocations: 252.9 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004484/0.8426, allocations: 331.1 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002008/0.8428, allocations: 63.05 kB / 1.095 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.967e-05/0.8429, allocations: 98.45 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of Backend: time 2.1e-07/0.8429, allocations: 0 / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007098/0.8436, allocations: 270.5 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of SimCode: time 0.000528/0.8441, allocations: 0.6305 MB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of Templates: time 0.006494/0.8506, allocations: 2.136 MB / 1.099 GB, free: 15.72 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches