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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 187.9 kB / 22.22 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 225.6 MB / 251 MB, free: 13.28 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.728/2.728, allocations: 443.4 MB / 0.7321 GB, free: 12.3 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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=2500,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=2500,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 71.81 kB / 1.061 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9619/0.9642, allocations: 160.8 MB / 1.218 GB, free: 3.758 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002392/0.9666, allocations: 0.8262 MB / 1.219 GB, free: 3.133 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002112/0.9687, allocations: 1.216 MB / 1.22 GB, free: 2.152 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.463e-05/0.9688, allocations: 1.188 kB / 1.22 GB, free: 2.152 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.916e-05/0.9688, allocations: 7.938 kB / 1.22 GB, free: 2.145 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.9689, allocations: 22.44 kB / 1.221 GB, free: 2.125 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.9696, allocations: 148.8 kB / 1.221 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00027/0.9699, allocations: 154.8 kB / 1.221 GB, free: 1.934 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.97, allocations: 23.06 kB / 1.221 GB, free: 1.918 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.9701, allocations: 58.02 kB / 1.221 GB, free: 1.887 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.9703, allocations: 64.64 kB / 1.221 GB, free: 1.84 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.039e-05/0.9703, allocations: 17.78 kB / 1.221 GB, free: 1.836 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.431e-05/0.9704, allocations: 24.41 kB / 1.221 GB, free: 1.832 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.465e-05/0.9704, allocations: 23.09 kB / 1.221 GB, free: 1.812 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.302e-05/0.9705, allocations: 62.98 kB / 1.221 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.9708, allocations: 145.5 kB / 1.221 GB, free: 1.66 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9708, allocations: 0 / 1.221 GB, free: 1.66 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9708, allocations: 0 / 1.221 GB, free: 1.66 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.9708, allocations: 1.062 kB / 1.221 GB, free: 1.66 MB / 0.92 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.0008464/0.9716, allocations: 450.9 kB / 1.222 GB, free: 1.207 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.9717, allocations: 8.844 kB / 1.222 GB, free: 1.207 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.9717, allocations: 11.77 kB / 1.222 GB, free: 1.203 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.9719, allocations: 177.3 kB / 1.222 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.9719, allocations: 8.688 kB / 1.222 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.9719, allocations: 12.62 kB / 1.222 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.9723, allocations: 97.72 kB / 1.222 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.9723, allocations: 192 / 1.222 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.9723, allocations: 9.156 kB / 1.222 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.9723, allocations: 9.234 kB / 1.222 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/0.9727, allocations: 83.39 kB / 1.222 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.9733, allocations: 386.5 kB / 1.222 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.9736, allocations: 91.31 kB / 1.222 GB, free: 440 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.9738, allocations: 50.88 kB / 1.223 GB, free: 412 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.9738, allocations: 5 kB / 1.223 GB, free: 408 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.9742, allocations: 129 kB / 1.223 GB, free: 304 kB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 2.044e-06/0.9742, allocations: 0.9375 kB / 1.223 GB, free: 304 kB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.0007135/0.975, allocations: 201.6 kB / 1.223 GB, free: 200 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.975, allocations: 61.53 kB / 1.223 GB, free: 128 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.9751, allocations: 129.1 kB / 1.223 GB, free: 8 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.9752, allocations: 34.08 kB / 1.223 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.9753, allocations: 100.4 kB / 1.223 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/0.9753, allocations: 36.14 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.9754, allocations: 44.77 kB / 1.223 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.9756, allocations: 325.1 kB / 1.224 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.9759, allocations: 81.5 kB / 1.224 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.9761, allocations: 116.1 kB / 1.224 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.9766, allocations: 192.4 kB / 1.224 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.9766, allocations: 0 / 1.224 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006545/0.9772, allocations: 268 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/0.9773, allocations: 36.89 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.9773, allocations: 0.9688 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.9773, allocations: 2.188 kB / 1.224 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.9775, allocations: 22.31 kB / 1.224 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.9775, allocations: 10.14 kB / 1.224 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.9778, allocations: 51.31 kB / 1.224 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.9778, allocations: 11.61 kB / 1.224 GB, free: 14.99 MB / 0.9356 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.0001433/0.9779, allocations: 131.2 kB / 1.224 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.978, allocations: 7.359 kB / 1.224 GB, free: 14.86 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005115/0.9785, allocations: 183.2 kB / 1.225 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.9785, allocations: 5.203 kB / 1.225 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.9785, allocations: 4 kB / 1.225 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.9785, allocations: 1.094 kB / 1.225 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008098/0.9793, allocations: 441.4 kB / 1.225 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.9793, allocations: 0 / 1.225 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.9794, allocations: 27.78 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9794, allocations: 1.125 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.9794, allocations: 5 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.9794, allocations: 0 / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.9795, allocations: 9.031 kB / 1.225 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.98, allocations: 255.7 kB / 1.225 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.98, allocations: 83.81 kB / 1.225 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.98, allocations: 5.469 kB / 1.225 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.9802, allocations: 14.58 kB / 1.225 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/0.9802, allocations: 17.19 kB / 1.225 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.9803, allocations: 11.92 kB / 1.225 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.16e-05/0.9803, allocations: 98.98 kB / 1.226 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.9803, allocations: 0 / 1.226 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000319/0.9807, allocations: 30.31 kB / 1.226 GB, free: 13.9 MB / 0.9356 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.0002184/0.9809, allocations: 115.1 kB / 1.226 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006047/0.9815, allocations: 218.7 kB / 1.226 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.9815, allocations: 1.031 kB / 1.226 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.9817, allocations: 64.86 kB / 1.226 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.982, allocations: 19.11 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005295/0.9825, allocations: 205.7 kB / 1.226 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.9829, allocations: 0.6982 MB / 1.227 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.693e-05/0.983, allocations: 10.45 kB / 1.227 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.983, allocations: 12.41 kB / 1.227 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/0.983, allocations: 1 kB / 1.227 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of Templates: time 0.005906/0.9889, allocations: 1.963 MB / 1.229 GB, free: 11.75 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.17959022615105]