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: 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_10_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_10_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.001018/0.001018, allocations: 87.98 kB / 16.02 MB, free: 80 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.001387/0.001387, allocations: 183.1 kB / 16.92 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.448/1.448, allocations: 223.3 MB / 241 MB, free: 5.289 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.813/2.813, allocations: 437.8 MB / 0.7128 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005467/0.000547, allocations: 16 kB / 0.8735 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6817/0.6823, allocations: 153.8 MB / 1.024 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001162/0.6835, allocations: 0.5254 MB / 1.024 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.6852, allocations: 1.202 MB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.33e-05/0.6853, allocations: 4 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.408e-05/0.6853, allocations: 3.938 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.6854, allocations: 7.922 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.686, allocations: 147.2 kB / 1.026 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.6862, allocations: 139.7 kB / 1.026 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.6863, allocations: 20.2 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.6864, allocations: 51.84 kB / 1.026 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.6865, allocations: 55.8 kB / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.6865, allocations: 8 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.951e-05/0.6866, allocations: 23.92 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.607e-05/0.6866, allocations: 15.92 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.6867, allocations: 77.47 kB / 1.026 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.6869, allocations: 97.73 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.6869, allocations: 0 / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6869, allocations: 0 / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.6869, allocations: 4 kB / 1.026 GB, free: 13.46 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.0006631/0.6876, allocations: 432.8 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.6877, allocations: 12.03 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.944e-05/0.6877, allocations: 12.84 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.6878, allocations: 176.2 kB / 1.027 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.6879, allocations: 8.375 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.6879, allocations: 8.375 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.6882, allocations: 117.9 kB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.6883, allocations: 3.938 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.6883, allocations: 0 / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.6883, allocations: 0 / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.6887, allocations: 111.9 kB / 1.027 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005886/0.6893, allocations: 384.6 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.6896, allocations: 102.7 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.6898, allocations: 68.81 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.6898, allocations: 0 / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003327/0.6901, allocations: 139.1 kB / 1.028 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.6901, allocations: 0 / 1.028 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0007374/0.6909, allocations: 245.5 kB / 1.028 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.6909, allocations: 51.41 kB / 1.028 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.691, allocations: 134 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.6911, allocations: 33.7 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.6912, allocations: 104 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.6912, allocations: 23.7 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/0.6913, allocations: 25.7 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.6914, allocations: 330.8 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.6916, allocations: 91.81 kB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.6919, allocations: 130.7 kB / 1.029 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004632/0.6924, allocations: 209.8 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.6924, allocations: 0 / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006613/0.6931, allocations: 291 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.6931, allocations: 33.7 kB / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6931, allocations: 0 / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.6932, allocations: 4 kB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.6933, allocations: 27.97 kB / 1.029 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.6933, allocations: 12.02 kB / 1.029 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.6936, allocations: 59.89 kB / 1.029 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.6937, allocations: 11.98 kB / 1.029 GB, free: 9.863 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.00012/0.6938, allocations: 138.2 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.6938, allocations: 7.906 kB / 1.029 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005042/0.6943, allocations: 194.4 kB / 1.03 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.6943, allocations: 0 / 1.03 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.6943, allocations: 0 / 1.03 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6943, allocations: 0 / 1.03 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007205/0.6951, allocations: 482.2 kB / 1.03 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.6951, allocations: 4 kB / 1.03 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.6952, allocations: 31.91 kB / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.6952, allocations: 0 / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.6952, allocations: 4 kB / 1.03 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.6952, allocations: 0 / 1.03 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.6953, allocations: 3.938 kB / 1.03 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.6958, allocations: 279.3 kB / 1.03 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.6958, allocations: 85.02 kB / 1.03 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.6958, allocations: 4 kB / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.696, allocations: 23.97 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.016e-05/0.6961, allocations: 11.92 kB / 1.03 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.6961, allocations: 4 kB / 1.03 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.533e-05/0.6961, allocations: 102.9 kB / 1.031 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6961, allocations: 0 / 1.031 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002747/0.6964, allocations: 35.98 kB / 1.031 GB, free: 8.375 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.0001775/0.6966, allocations: 112.9 kB / 1.031 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005885/0.6972, allocations: 259.2 kB / 1.031 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.6972, allocations: 0 / 1.031 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.6974, allocations: 84.14 kB / 1.031 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.6977, allocations: 19.92 kB / 1.031 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004623/0.6982, allocations: 258.9 kB / 1.031 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.6985, allocations: 0.6965 MB / 1.032 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.001e-05/0.6985, allocations: 15.42 kB / 1.032 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of SimCode: time 2.154e-06/0.6986, allocations: 0 / 1.032 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of Templates: time 0.003593/0.7022, allocations: 1.632 MB / 1.034 GB, free: 5.254 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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