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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001171/0.001171, allocations: 99.42 kB / 16.02 MB, free: 76 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.002062/0.002062, allocations: 185.9 kB / 16.92 MB, free: 6.75 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.479/1.479, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.615/2.615, allocations: 390.9 MB / 0.667 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0007303/0.0007305, allocations: 12.28 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8089/0.8097, allocations: 142.4 MB / 0.9557 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0009691/0.8107, allocations: 0.5233 MB / 0.9562 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.8121, allocations: 1.199 MB / 0.9574 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.469e-05/0.8122, allocations: 5 kB / 0.9574 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.8122, allocations: 7.922 kB / 0.9574 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.637e-05/0.8123, allocations: 13.94 kB / 0.9574 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.8128, allocations: 140.2 kB / 0.9576 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.813, allocations: 128.8 kB / 0.9577 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.8131, allocations: 25.52 kB / 0.9577 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.565e-05/0.8132, allocations: 55.73 kB / 0.9578 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.466e-05/0.8133, allocations: 54.83 kB / 0.9578 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.8133, allocations: 7.094 kB / 0.9578 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.119e-05/0.8134, allocations: 20.08 kB / 0.9578 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.8134, allocations: 24.23 kB / 0.9579 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.32e-05/0.8135, allocations: 72.75 kB / 0.9579 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.8136, allocations: 100.4 kB / 0.958 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.8137, allocations: 0 / 0.958 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8137, allocations: 0 / 0.958 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.8137, allocations: 3.938 kB / 0.958 GB, free: 6.078 MB / 0.7169 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.0005533/0.8142, allocations: 429.2 kB / 0.9584 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.8143, allocations: 9.188 kB / 0.9584 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.8143, allocations: 12.31 kB / 0.9585 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.173e-05/0.8144, allocations: 179.9 kB / 0.9586 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.8145, allocations: 9.625 kB / 0.9586 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.8145, allocations: 12.16 kB / 0.9587 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.8148, allocations: 111 kB / 0.9588 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.8148, allocations: 192 / 0.9588 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.8148, allocations: 11.88 kB / 0.9588 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.8148, allocations: 2.156 kB / 0.9588 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.8152, allocations: 106.8 kB / 0.9589 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.8157, allocations: 387.9 kB / 0.9592 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.816, allocations: 103.1 kB / 0.9593 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.8162, allocations: 71.72 kB / 0.9594 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.8162, allocations: 1.25 kB / 0.9594 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000279/0.8165, allocations: 130.7 kB / 0.9595 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.8165, allocations: 0 / 0.9595 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.000662/0.8172, allocations: 248.1 kB / 0.9598 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.8172, allocations: 56.77 kB / 0.9598 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.278e-05/0.8173, allocations: 126.7 kB / 0.9599 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.8173, allocations: 37.81 kB / 0.96 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.8174, allocations: 100.1 kB / 0.9601 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.8174, allocations: 25.2 kB / 0.9601 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.8174, allocations: 24.58 kB / 0.9601 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.912e-05/0.8175, allocations: 325.5 kB / 0.9604 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.8177, allocations: 86.81 kB / 0.9605 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.818, allocations: 130.3 kB / 0.9606 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004154/0.8184, allocations: 206.4 kB / 0.9608 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8184, allocations: 5 kB / 0.9608 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006168/0.819, allocations: 289.2 kB / 0.9611 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.8191, allocations: 37.88 kB / 0.9612 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.8191, allocations: 1.062 kB / 0.9612 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.8191, allocations: 2.125 kB / 0.9612 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.8193, allocations: 30.67 kB / 0.9612 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.8193, allocations: 5.984 kB / 0.9612 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.8196, allocations: 62.55 kB / 0.9613 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.8196, allocations: 11.34 kB / 0.9613 GB, free: 3.43 MB / 0.7169 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.0001021/0.8197, allocations: 130.6 kB / 0.9614 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.8197, allocations: 7.156 kB / 0.9614 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004806/0.8202, allocations: 201.2 kB / 0.9616 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.8202, allocations: 1.969 kB / 0.9616 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.8203, allocations: 0 / 0.9616 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.8203, allocations: 4.734 kB / 0.9616 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006491/0.8209, allocations: 476.8 kB / 0.9621 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8209, allocations: 4.781 kB / 0.9621 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.821, allocations: 28.36 kB / 0.9621 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.8211, allocations: 1.125 kB / 0.9621 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.8211, allocations: 5.422 kB / 0.9621 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.8211, allocations: 0 / 0.9621 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.8211, allocations: 5.281 kB / 0.9621 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004404/0.8215, allocations: 278.5 kB / 0.9624 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.694e-05/0.8216, allocations: 84.08 kB / 0.9624 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.8216, allocations: 9.125 kB / 0.9624 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.8217, allocations: 20.55 kB / 0.9625 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.8218, allocations: 17.78 kB / 0.9625 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.8218, allocations: 7 kB / 0.9625 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.542e-05/0.8219, allocations: 96.61 kB / 0.9626 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8219, allocations: 0 / 0.9626 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002834/0.8222, allocations: 30.53 kB / 0.9626 GB, free: 2.336 MB / 0.7169 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.0001764/0.8223, allocations: 115.9 kB / 0.9627 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005557/0.8229, allocations: 252 kB / 0.963 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8229, allocations: 0 / 0.963 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.8231, allocations: 89.47 kB / 0.963 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.8234, allocations: 16.28 kB / 0.9631 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.8239, allocations: 256.4 kB / 0.9633 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.824, allocations: 0.6973 MB / 0.964 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.824, allocations: 17.55 kB / 0.964 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.824, allocations: 0 / 0.964 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of Templates: time 0.003147/0.8272, allocations: 1.63 MB / 0.9656 GB, free: 276 kB / 0.7169 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